IVsUserContextItem.CountAttributes Method
Counts the attributes of the user-selected item in the shell.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function CountAttributes ( _
pszAttrName As String, _
<OutAttribute> ByRef pc As Integer _
) As Integer
'Uso
Dim instance As IVsUserContextItem
Dim pszAttrName As String
Dim pc As Integer
Dim returnValue As Integer
returnValue = instance.CountAttributes(pszAttrName, _
pc)
int CountAttributes(
string pszAttrName,
out int pc
)
int CountAttributes(
[InAttribute] String^ pszAttrName,
[OutAttribute] int% pc
)
abstract CountAttributes :
pszAttrName:string *
pc:int byref -> int
function CountAttributes(
pszAttrName : String,
pc : int
) : int
Parameters
- pszAttrName
Type: System.String
[in] The string name of the attribute of the UserContextItem.
- pc
Type: System.Int32%
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 context.idl:
HRESULT IVsUserContextItem::CountAttributes(
[in] LPCOLESTR pszAttrName,
[out, retval] int * pc
);
.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.