Partager via


Device.EndStateBlock() Method (Microsoft.DirectX.Direct3D)

Signals Microsoft Direct3D to stop recording a device state block and retrieve a pointer to the state block interface.

Definition

Visual Basic Public Function EndStateBlock() As StateBlock
C# public StateBlock EndStateBlock();
C++ public:
StateBlockEndStateBlock();
JScript public function EndStateBlock() : StateBlock;

Return Value

Microsoft.DirectX.Direct3D.StateBlock
State block object. For more information, see StateBlock.

Remarks

Exceptions

InvalidCallException

The method call is invalid. This can occur if EndStateBlock is called without a corresponding BeginStateBlock.