Sdílet prostřednictvím


IVsBuildPropertyStorage.SetPropertyValue Method

Definition

Used by a project subtype to set an MSBuild property value.

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 build property.

pszConfigName
String

[in] Name of the build configuration.

storage
UInt32

[in] Storage type for file persistence. Values are taken from the _PersistStorageType enumeration.

pszPropValue
String

[in] Specifies the MSBuild property value.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsBuildPropertyStorage::SetPropertyValue(  
   [in] LPCOLESTR pszPropName,  
   [in] LPCOLESTR pszConfigName,  
   [in] PersistStorageType storage,  
   [in] LPCOLESTR pszPropValue  
);  

Applies to