Compartilhar via


IVsUpgradeBuildPropertyStorage.SetPropertyValue Method

Definition

Sets a property value in a project file.

public:
 int SetPropertyValue(System::String ^ pszPropName, System::String ^ pszConfigName, System::UInt32 storage, System::String ^ pszPropValue);
public:
 int SetPropertyValue(Platform::String ^ pszPropName, Platform::String ^ pszConfigName, unsigned int storage, Platform::String ^ pszPropValue);
int SetPropertyValue(std::wstring const & pszPropName, std::wstring const & pszConfigName, unsigned int storage, std::wstring const & pszPropValue);
public int SetPropertyValue (string pszPropName, string pszConfigName, uint storage, string pszPropValue);
abstract member SetPropertyValue : string * string * uint32 * string -> int
Public Function SetPropertyValue (pszPropName As String, pszConfigName As String, storage As UInteger, pszPropValue As String) As Integer

Parameters

pszPropName
String

[in] Name of the property.

pszConfigName
String

[in] Configuration associated with the property.

storage
UInt32

[in] _PersistStorageType specifying whether the property is stored in a project or user file.

pszPropValue
String

[out] Value of the property.

Returns

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

Remarks

COM Signature

From vsshell90.idl:

HRESULT SetPropertyValue(  
    [in] LPCOLESTR pszPropName,  
    [in] LPCOLESTR pszConfigName,  
    [in] PersistStorageType storage,  
    [in] BSTR* pbstrPropValue  
);  

Applies to