用于使项目子类型中移除 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] 生成配置的名称。
- storage
类型:System.UInt32
[in] 文件持久性存储区类型。值从 _PersistStorageType 枚举中采用。
返回值
类型: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。