Condividi tramite


IVsBuildPropertyStorage.SetItemAttribute(UInt32, String, String) Method

Definition

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

public:
 int SetItemAttribute(System::UInt32 item, System::String ^ pszAttributeName, System::String ^ pszAttributeValue);
public:
 int SetItemAttribute(unsigned int item, Platform::String ^ pszAttributeName, Platform::String ^ pszAttributeValue);
int SetItemAttribute(unsigned int item, std::wstring const & pszAttributeName, std::wstring const & pszAttributeValue);
public int SetItemAttribute (uint item, string pszAttributeName, string pszAttributeValue);
abstract member SetItemAttribute : uint32 * string * string -> int
Public Function SetItemAttribute (item As UInteger, pszAttributeName As String, pszAttributeValue As String) As Integer

Parameters

item
UInt32

[in] The VSITEMID for the element.

pszAttributeName
String

[in] String containing the name of the attribute.

pszAttributeValue
String

[in] 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