Share via


Frame.Destroy(Frame,AllocateHierarchy) Method (Microsoft.DirectX.Direct3D)

Destroys the subtree of frames under the root, including the root.

Definition

Visual Basic Public Shared Sub Destroy( _
    ByVal frameRoot As Frame, _
    ByVal allocHierarchy As AllocateHierarchy _
)
C# public static void Destroy(
    Frame frameRoot,
    AllocateHierarchy allocHierarchy
);
C++ public:
static void Destroy(
    FrameframeRoot,
    AllocateHierarchyallocHierarchy
);
JScript public static function Destroy(
    frameRoot : Frame,
    allocHierarchy : AllocateHierarchy
);

Parameters

frameRoot Microsoft.DirectX.Direct3D.Frame
A Frame object that represents the root node in the frame hierarchy.
allocHierarchy Microsoft.DirectX.Direct3D.AllocateHierarchy
An AllocateHierarchy object used to deallocate nodes of the frame hierarchy.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.