다음을 통해 공유


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

'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: String

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

  • pc
    Type: Int32%

    [out] The number of attributes in the UserContextItem.

Return Value

Type: 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

See Also

Reference

IVsUserContextItem Interface

Microsoft.VisualStudio.Shell.Interop Namespace