返回项目文件中的项的元数据。 此调用仅仅是 GetItemAttribute 的简便方式。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Project
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Function GetItemAttribute ( _
attributeName As String, _
<OutAttribute> ByRef attributeValue As String _
) As Integer
int GetItemAttribute(
string attributeName,
out string attributeValue
)
int GetItemAttribute(
String^ attributeName,
[OutAttribute] String^% attributeValue
)
abstract GetItemAttribute :
attributeName:string *
attributeValue:string byref -> int
function GetItemAttribute(
attributeName : String,
attributeValue : String
) : int
参数
- attributeName
类型:System.String
特性名。
- attributeValue
类型:System.String%
特性值。
返回值
类型:System.Int32
HRESULT
备注
如果 attributeName 为 null 或 String.Empty,则引发异常。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。