IDatabaseProjectNode.GetProjectProperty 方法 (String, Boolean, DatabaseProjectPropertyValueType, String)
返回项目属性的值。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Project
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Function GetProjectProperty ( _
propertyName As String, _
resetCache As Boolean, _
evaluation As DatabaseProjectPropertyValueType, _
defaultValue As String _
) As String
string GetProjectProperty(
string propertyName,
bool resetCache,
DatabaseProjectPropertyValueType evaluation,
string defaultValue
)
String^ GetProjectProperty(
String^ propertyName,
bool resetCache,
DatabaseProjectPropertyValueType evaluation,
String^ defaultValue
)
abstract GetProjectProperty :
propertyName:string *
resetCache:bool *
evaluation:DatabaseProjectPropertyValueType *
defaultValue:string -> string
function GetProjectProperty(
propertyName : String,
resetCache : boolean,
evaluation : DatabaseProjectPropertyValueType,
defaultValue : String
) : String
参数
- propertyName
类型:System.String
属性的名称。
- resetCache
类型:System.Boolean
true 表示重新处理 MSBuild 属性缓存。
- evaluation
类型:Microsoft.VisualStudio.Data.Schema.Package.Project.DatabaseProjectPropertyValueType
确定是否计算最终结果以移除所有嵌入的宏。
- defaultValue
类型:System.String
如果属性为空,则返回默认值。
返回值
类型:System.String
项目属性的当前值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。