Metoda IVsBuildPropertyStorage.GetItemAttribute — (UInt32, String, String)
Pobiera 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 GetItemAttribute(
uint item,
string pszAttributeName,
out string pbstrAttributeValue
)
int GetItemAttribute(
unsigned int item,
String^ pszAttributeName,
[OutAttribute] String^% pbstrAttributeValue
)
abstract GetItemAttribute :
item:uint32 *
pszAttributeName:string *
pbstrAttributeValue:string byref -> int
Function GetItemAttribute (
item As UInteger,
pszAttributeName As String,
<OutAttribute> ByRef pbstrAttributeValue As String
) As Integer
Parametry
item
Type: System.UInt32[in] VSITEMID dla elementu.
pszAttributeName
Type: System.String[in] Ciąg zawierający nazwę atrybutu.
pbstrAttributeValue
Type: System.String[out] 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