IVsBuildPropertyStorage.GetItemAttribute Method

Retrieves the value of an attribute for a hierarchy item identified by VSITEMID.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function GetItemAttribute ( _
    item As UInteger, _
    pszAttributeName As String, _
    <OutAttribute> ByRef pbstrAttributeValue As String _
) As Integer
‘사용 방법
Dim instance As IVsBuildPropertyStorage
Dim item As UInteger
Dim pszAttributeName As String
Dim pbstrAttributeValue As String
Dim returnValue As Integer

returnValue = instance.GetItemAttribute(item, _
    pszAttributeName, pbstrAttributeValue)
int GetItemAttribute(
    uint item,
    string pszAttributeName,
    out string pbstrAttributeValue
)
int GetItemAttribute(
    [InAttribute] unsigned int item, 
    [InAttribute] String^ pszAttributeName, 
    [OutAttribute] String^% pbstrAttributeValue
)
abstract GetItemAttribute : 
        item:uint32 * 
        pszAttributeName:string * 
        pbstrAttributeValue:string byref -> int 
function GetItemAttribute(
    item : uint, 
    pszAttributeName : String, 
    pbstrAttributeValue : String
) : int

Parameters

  • pszAttributeName
    Type: System.String
    [in] String containing the name of the attribute.
  • pbstrAttributeValue
    Type: System.String%
    [out] String containing the value of the attribute.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsBuildPropertyStorage Interface

IVsBuildPropertyStorage Members

Microsoft.VisualStudio.Shell.Interop Namespace