Windows Dev Center

Expand Minimize

Device.GetSwapChain(Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves a reference to a swap chain.

Definition

Visual BasicPublic Function GetSwapChain( _
    ByVal swapChain As Integer _
) As SwapChain
C#public SwapChain GetSwapChain(
    int swapChain
);
C++public:
SwapChainGetSwapChain(
    int swapChain
);
JScriptpublic function GetSwapChain(
    swapChain : int
) : SwapChain;

Parameters

swapChain System.Int32
Swap chain ordinal value. For more information, see Caps.NumberOfAdaptersInGroup.

Return Value

Microsoft.DirectX.Direct3D.SwapChain
A SwapChain class that receives a copy of the swap chain.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Show:
© 2015 Microsoft