Share via


PatchMesh.Declaration Property (Microsoft.DirectX.Direct3D)

Retrieves the vertex declaration.

Definition

Visual Basic Public ReadOnly Property Declaration As VertexElement()
C# public VertexElement[] Declaration { get; }
C++ public:
property array<VertexElement>^ Declaration {
        array<VertexElement>^ get();
}
JScript public function get Declaration() : VertexElement[]

Property Value

Microsoft.DirectX.Direct3D.VertexElement[]
Array of VertexElement elements that describe the vertex format of the mesh vertices. The vertex element array ends with the value found in the VertexDeclarationEnd field.

This property is read-only. 

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.