IVsBuildPropertyStorage.RemoveProperty 方法

用于使项目子类型中移除 MSBuild 属性。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function RemoveProperty ( _
    pszPropName As String, _
    pszConfigName As String, _
    storage As UInteger _
) As Integer
int RemoveProperty(
    string pszPropName,
    string pszConfigName,
    uint storage
)

参数

  • pszPropName
    类型:System.String
    [in] 移除的生成属性的名称。
  • pszConfigName
    类型:System.String
    [in] 生成配置的名称。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl:

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

此方法可由项目子类型使用移除 MSBuild 属性,因此使项目子类型影响基项目的生成过程。有关项目子类型的更多信息,请参见 Project Subtype Overviewd

.NET Framework 安全性

请参见

参考

IVsBuildPropertyStorage 接口

Microsoft.VisualStudio.Shell.Interop 命名空间