Share via


Resource.GetPrivateData(Guid) Method (Microsoft.DirectX.Direct3D)

Copies the private data associated with a resource to a buffer.

Definition

Visual Basic Public Function GetPrivateData( _
    ByVal guidData As GuidLeave Site _
) As Byte()
C# public byte[] GetPrivateData(
    GuidLeave Site guidData
);
C++ public:
array<unsigned char>^ GetPrivateData(
    GuidLeave Site guidData
);
JScript public function GetPrivateData(
    guidData : GuidLeave Site
) : byte[];

Parameters

guidData System.Guid
Represents a globally unique identifier (GUID) that identifies the private data to retrieve.

Return Value

System.Byte[]
Returns an array of bytesLeave Site that contains the requested private data.

Remarks

Exceptions

InvalidCallException

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

NotFoundException

The requested GuidLeave Site was not found.

Applies To

BaseTexture, IndexBuffer, Surface, VertexBuffer