Udostępnij za pośrednictwem


Metoda IVsBuildPropertyStorage.SetItemAttribute — (UInt32, String, String)

 

Ustawia wartość atrybutu dla elementu hierarchii identyfikowane przez VSITEMID.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

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

  • pszAttributeName
    Type: System.String

    [in] Ciąg zawierający nazwę atrybutu.

  • pszAttributeValue
    Type: System.String

    [in] Ciąg zawierający wartość atrybutu.

Wartość zwracana

Type: System.Int32

Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.

Zobacz też

Interfejs IVsBuildPropertyStorage
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku