다음을 통해 공유


IVsBuildPropertyStorage.SetPropertyValue Method

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

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

Syntax

‘선언
Function SetPropertyValue ( _
    pszPropName As String, _
    pszConfigName As String, _
    storage As UInteger, _
    pszPropValue As String _
) As Integer
‘사용 방법
Dim instance As IVsBuildPropertyStorage
Dim pszPropName As String
Dim pszConfigName As String
Dim storage As UInteger
Dim pszPropValue As String
Dim returnValue As Integer

returnValue = instance.SetPropertyValue(pszPropName, _
    pszConfigName, storage, pszPropValue)
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: System.String
    [in] Name of the build property.
  • pszConfigName
    Type: System.String
    [in] Name of the build configuration.
  • pszPropValue
    Type: System.String
    [in] Specifies the MSBuild property value.

Return Value

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

.NET Framework Security

See Also

Reference

IVsBuildPropertyStorage Interface

IVsBuildPropertyStorage Members

Microsoft.VisualStudio.Shell.Interop Namespace