Compartilhar via


IVsUpgradeBuildPropertyStorage.SetPropertyValue Method

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)

Syntax

'Declaration
Function SetPropertyValue ( _
    pszPropName As String, _
    pszConfigName As String, _
    storage As UInteger, _
    pszPropValue As String _
) As Integer
int SetPropertyValue(
    string pszPropName,
    string pszConfigName,
    uint storage,
    string pszPropValue
)
int SetPropertyValue(
    [InAttribute] String^ pszPropName, 
    [InAttribute] String^ pszConfigName, 
    [InAttribute] unsigned int storage, 
    [InAttribute] String^ pszPropValue
)
abstract SetPropertyValue : 
        pszPropName:string * 
        pszConfigName:string * 
        storage:uint32 * 
        pszPropValue:string -> int
function SetPropertyValue(
    pszPropName : String, 
    pszConfigName : String, 
    storage : uint, 
    pszPropValue : String
) : int

Parameters

  • pszPropName
    Type: String

    [in] Name of the property.

  • pszConfigName
    Type: String

    [in] Configuration associated with the property.

  • storage
    Type: UInt32

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

  • pszPropValue
    Type: String

    [out] Value of the property.

Return Value

Type: Int32
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
);

.NET Framework Security

See Also

Reference

IVsUpgradeBuildPropertyStorage Interface

Microsoft.VisualStudio.Shell.Interop Namespace