共用方式為


IVsUpgradeBuildPropertyStorage.RemoveProperty(String, String, UInt32) Method

Definition

Removes a property from a project file.

public:
 int RemoveProperty(System::String ^ pszPropName, System::String ^ pszConfigName, System::UInt32 storage);
public:
 int RemoveProperty(Platform::String ^ pszPropName, Platform::String ^ pszConfigName, unsigned int storage);
int RemoveProperty(std::wstring const & pszPropName, std::wstring const & pszConfigName, unsigned int storage);
public int RemoveProperty (string pszPropName, string pszConfigName, uint storage);
abstract member RemoveProperty : string * string * uint32 -> int
Public Function RemoveProperty (pszPropName As String, pszConfigName As String, storage As UInteger) As Integer

Parameters

pszPropName
String

[in] Name of the property to remove.

pszConfigName
String

[in] Configuration associated with the property.

storage
UInt32

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

Returns

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

Remarks

COM Signature

From vsshell90.idl:

HRESULT RemoveProperty(  
    [in] LPCOLESTR pszPropName,  
    [in] LPCOLESTR pszConfigName,  
    [in] PersistStorageType storage,  
);  

Applies to