IVsSwatchClient.GetSelection(Int32, Int32) 方法

定义

从 Visual Studio 2010,此接口已弃用。 Visual Studio shell 不再识别此接口。

public:
 int GetSelection([Runtime::InteropServices::Out] int % pxCur, [Runtime::InteropServices::Out] int % pyCur);
int GetSelection([Runtime::InteropServices::Out] int & pxCur, [Runtime::InteropServices::Out] int & pyCur);
public int GetSelection (out int pxCur, out int pyCur);
abstract member GetSelection : int * int -> int
Public Function GetSelection (ByRef pxCur As Integer, ByRef pyCur As Integer) As Integer

参数

pxCur
Int32

[In,Out]指向整数值的指针。

pyCur
Int32

[In,Out]指向整数值的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

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

适用于