IVsSwatchClient.GetSelection Method

This interface is deprecated as of Visual Studio 2010. The Visual Studio shell no longer recognizes this interface.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetSelection ( _
    <OutAttribute> ByRef pxCur As Integer, _
    <OutAttribute> ByRef pyCur As Integer _
) As Integer
int GetSelection(
    out int pxCur,
    out int pyCur
)
int GetSelection(
    [InAttribute] [OutAttribute] int% pxCur, 
    [InAttribute] [OutAttribute] int% pyCur
)
abstract GetSelection : 
        pxCur:int byref * 
        pyCur:int byref -> int 
function GetSelection(
    pxCur : int, 
    pyCur : int
) : int

Parameters

  • pxCur
    Type: System.Int32%
    [In, Out] A pointer to an integer value.
  • pyCur
    Type: System.Int32%
    [In, Out] A pointer to an integer value.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSwatchClient::GetSelection(
   [in, out] int *pxCur, 
   [in, out] int *pyCur
);

.NET Framework Security

See Also

Reference

IVsSwatchClient Interface

Microsoft.VisualStudio.Shell.Interop Namespace