Compartilhar via


IVsBuildPropertyStorage.GetItemAttribute(UInt32, String, String) Method

Definition

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

public:
 int GetItemAttribute(System::UInt32 item, System::String ^ pszAttributeName, [Runtime::InteropServices::Out] System::String ^ % pbstrAttributeValue);
int GetItemAttribute(unsigned int item, std::wstring const & pszAttributeName, [Runtime::InteropServices::Out] std::wstring const & & pbstrAttributeValue);
public int GetItemAttribute (uint item, string pszAttributeName, out string pbstrAttributeValue);
abstract member GetItemAttribute : uint32 * string * string -> int
Public Function GetItemAttribute (item As UInteger, pszAttributeName As String, ByRef pbstrAttributeValue As String) As Integer

Parameters

item
UInt32

[in] The VSITEMID for the element.

pszAttributeName
String

[in] String containing the name of the attribute.

pbstrAttributeValue
String

[out] String containing the value of the attribute.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to