Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Function CountAttributes ( _
pszAttrName As String, _
<OutAttribute> ByRef pc As Integer _
) As Integer
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.