Surface.GetContainer Method

Language:

Provides access to the parent cube texture or texture (mipmap) object.

Definition

Visual Basic Public Function GetContainer( _
    ByVal interfaceId As Guid _
) As Object
C# public object GetContainer(
    Guid interfaceId
);
C++ public:
ObjectGetContainer(
    Guid interfaceId
);
JScript public function GetContainer(
    interfaceId : Guid
) : Object;

Parameters

interfaceId System.Guid

Return Value

System.Object
An Object Leave Site that represents the newly created container.

Remarks

This method provides access to the parent cube texture or texture mipmap object if the surface is a child level of a cube texture or mipmap. It also can provide access to the parent swap chain if the surface is a back buffer child.

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

See Also


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center