Partager via


IVsBuildPropertyStorage.SetItemAttribute Method

Sets 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

'Déclaration
Function SetItemAttribute ( _
    item As UInteger, _
    pszAttributeName As String, _
    pszAttributeValue As String _
) As Integer
'Utilisation
Dim instance As IVsBuildPropertyStorage
Dim item As UInteger
Dim pszAttributeName As String
Dim pszAttributeValue As String
Dim returnValue As Integer

returnValue = instance.SetItemAttribute(item, _
    pszAttributeName, pszAttributeValue)
int SetItemAttribute(
    uint item,
    string pszAttributeName,
    string pszAttributeValue
)
int SetItemAttribute(
    [InAttribute] unsigned int item, 
    [InAttribute] String^ pszAttributeName, 
    [InAttribute] String^ pszAttributeValue
)
abstract SetItemAttribute : 
        item:uint32 * 
        pszAttributeName:string * 
        pszAttributeValue:string -> int 
function SetItemAttribute(
    item : uint, 
    pszAttributeName : String, 
    pszAttributeValue : String
) : int

Parameters

  • pszAttributeName
    Type: System.String
    [in] String containing the name of the attribute.
  • pszAttributeValue
    Type: System.String
    [in] 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