以 Boolean 的形式返回项目属性的值。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Project
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Function GetProjectPropertyAsBoolean ( _
propertyName As String, _
resetCache As Boolean, _
defaultValue As Boolean _
) As Boolean
bool GetProjectPropertyAsBoolean(
string propertyName,
bool resetCache,
bool defaultValue
)
bool GetProjectPropertyAsBoolean(
String^ propertyName,
bool resetCache,
bool defaultValue
)
abstract GetProjectPropertyAsBoolean :
propertyName:string *
resetCache:bool *
defaultValue:bool -> bool
function GetProjectPropertyAsBoolean(
propertyName : String,
resetCache : boolean,
defaultValue : boolean
) : boolean
参数
- propertyName
类型:System.String
属性的名称。
- resetCache
类型:System.Boolean
true 表示重新处理 MSBuild 属性缓存。
- defaultValue
类型:System.Boolean
如果字符串值为空或无效,则为布尔类型的默认值。
返回值
类型:System.Boolean
项目属性的当前值(Boolean 形式)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。