IDatabaseNode.GetItemAttribute 方法

返回项目文件中的项的元数据。 此调用仅仅是 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

参数

返回值

类型:System.Int32
HRESULT

备注

如果 attributeName 为 null 或 String.Empty,则引发异常。

.NET Framework 安全性

请参见

参考

IDatabaseNode 接口

Microsoft.VisualStudio.Data.Schema.Package.Project 命名空间