IVsUserContextItem::CountAttributes Method (String^, Int32)

 

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)

int CountAttributes(
	String^ pszAttrName,
	[OutAttribute] int% pc
)

Parameters

pszAttrName
Type: System::String^

[in] The string name of the attribute of the UserContextItem.

pc
Type: System::Int32

[out] The number of attributes in the UserContextItem.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From context.idl:

HRESULT IVsUserContextItem::CountAttributes(
   [in] LPCOLESTR pszAttrName, 
   [out, retval] int * pc
);
Return to top
Show: