Partager via


IVsBuildPropertyStorage.RemoveProperty Method

Used by a project subtype to remove an MSBuild property.

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

Syntax

'Déclaration
Function RemoveProperty ( _
    pszPropName As String, _
    pszConfigName As String, _
    storage As UInteger _
) As Integer
'Utilisation
Dim instance As IVsBuildPropertyStorage
Dim pszPropName As String
Dim pszConfigName As String
Dim storage As UInteger
Dim returnValue As Integer

returnValue = instance.RemoveProperty(pszPropName, _
    pszConfigName, storage)
int RemoveProperty(
    string pszPropName,
    string pszConfigName,
    uint storage
)
int RemoveProperty(
    [InAttribute] String^ pszPropName, 
    [InAttribute] String^ pszConfigName, 
    [InAttribute] unsigned int storage
)
function RemoveProperty(
    pszPropName : String, 
    pszConfigName : String, 
    storage : uint
) : int

Parameters

  • pszPropName
    Type: System.String

    [in] Name of the build property to remove.

  • pszConfigName
    Type: System.String

    [in] Name of the build configuration.

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::RemoveProperty(
   [in] LPCOLESTR pszPropName,
   [in] LPCOLESTR pszConfigName,
   [in] PersistStorageType storage
);

This method can be employed by a project subtype to remove an MSBuild property and thus enable the project subtype to influence the base project's build process. For more information on project subtypes, see Project Subtype Overviewd.

Permissions

See Also

Reference

IVsBuildPropertyStorage Interface

IVsBuildPropertyStorage Members

Microsoft.VisualStudio.Shell.Interop Namespace