Sdílet prostřednictvím


IVsBuildPropertyStorage.SetItemAttribute – metoda (UInt32, String, String)

 

Nastaví hodnotu atributu pro položku hierarchie podle VSITEMID.

Obor názvů:   Microsoft.VisualStudio.Shell.Interop
Sestavení:  Microsoft.VisualStudio.Shell.Interop.8.0 (v Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntaxe

int SetItemAttribute(
    uint item,
    string pszAttributeName,
    string pszAttributeValue
)
int SetItemAttribute(
    unsigned int item,
    String^ pszAttributeName,
    String^ pszAttributeValue
)
abstract SetItemAttribute : 
        item:uint32 *
        pszAttributeName:string *
        pszAttributeValue:string -> int
Function SetItemAttribute (
    item As UInteger,
    pszAttributeName As String,
    pszAttributeValue As String
) As Integer

Parametry

  • item
    [v] VSITEMID prvku.
  • pszAttributeName
    [v] Řetězec obsahující název atributu.
  • pszAttributeValue
    [v] Řetězec obsahující hodnotu atributu.

Vrácená hodnota

Type: System.Int32

Pokud metoda uspěje, vrací S_OK.Pokud se nezdaří, vrátí kód chyby.

Viz také

IVsBuildPropertyStorage – rozhraní
Microsoft.VisualStudio.Shell.Interop – obor názvů

Zpátky na začátek