다음을 통해 공유


IVsUserContextItem.CountAttributes(String, Int32) Method

Definition

Counts the attributes of the user-selected item in the shell.

public:
 int CountAttributes(System::String ^ pszAttrName, [Runtime::InteropServices::Out] int % pc);
int CountAttributes(std::wstring const & pszAttrName, [Runtime::InteropServices::Out] int & pc);
public int CountAttributes (string pszAttrName, out int pc);
abstract member CountAttributes : string * int -> int
Public Function CountAttributes (pszAttrName As String, ByRef pc As Integer) As Integer

Parameters

pszAttrName
String

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

pc
Int32

[out] The number of attributes in the UserContextItem.

Returns

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  
);  

Applies to