Resource.SetPrivateData Method |
Language: |
Associates data with the resource that is intended for use by the application. Data is passed by value, and multiple sets of data can be associated with a single resource.
Visual Basic Public Sub SetPrivateData( _
ByVal guidData As Guid, _
ByVal privateData() As Byte _
)C# public void SetPrivateData(
Guid guidData,
byte[] privateData
);C++ public:
void SetPrivateData(
Guid guidData,
array<unsigned char>^ privateData
);JScript public function SetPrivateData(
guidData : Guid,
privateData : byte[]
);
guidData System.Guid
A globally unique identifier (GUID) that identifies the private data to set.privateData System.Byte[]
A Byte array that contains the private data to associate with the resource.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException Microsoft DirectX could not allocate sufficient memory to complete the method call. ArgumentNullException The privateData parameter is null.
BaseTexture, IndexBuffer, Surface, VertexBuffer
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