IVsObjectList2.GetCapabilities2 Method
Returns an object list's capabilities.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function GetCapabilities2 ( _
<OutAttribute> ByRef pgrfCapabilities As UInteger _
) As Integer
'用途
Dim instance As IVsObjectList2
Dim pgrfCapabilities As UInteger
Dim returnValue As Integer
returnValue = instance.GetCapabilities2(pgrfCapabilities)
int GetCapabilities2(
out uint pgrfCapabilities
)
int GetCapabilities2(
[OutAttribute] unsigned int% pgrfCapabilities
)
abstract GetCapabilities2 :
pgrfCapabilities:uint32 byref -> int
function GetCapabilities2(
pgrfCapabilities : uint
) : int
Parameters
- pgrfCapabilities
Type: System.UInt32%
[out] Specifies an object list's capabilities. Values are taken from the _LIB_LISTCAPABILITIES enumeration.
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 vsshell80.idl:
HRESULT IVsObjectList2::GetCapabilities2(
[out] LIB_LISTCAPABILITIES2 *pgrfCapabilities
);
The environment's object manager calls this method to retrieve the enumerated capabilities of the object list on which the IVsObjectList2 interface is implemented. For the list of capabilities see _LIB_LISTCAPABILITIES.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.