IVsUpgradeBuildPropertyStorage::SetPropertyValue Method (String^, String^, UInt32, String^)

 

Sets a property value in a project file.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

int SetPropertyValue(
	String^ pszPropName,
	String^ pszConfigName,
	unsigned int storage,
	String^ pszPropValue
)

Parameters

pszPropName
Type: System::String^

[in] Name of the property.

pszConfigName
Type: System::String^

[in] Configuration associated with the property.

storage
Type: System::UInt32

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

pszPropValue
Type: System::String^

[out] Value of the property.

Return Value

Type: System::Int32

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

From vsshell90.idl:

HRESULT SetPropertyValue(
    [in] LPCOLESTR pszPropName,
    [in] LPCOLESTR pszConfigName,
    [in] PersistStorageType storage,
    [in] BSTR* pbstrPropValue
);
Return to top
Show: