GraphObject.GetValue<T> 方法 (GraphProperty, Graph)

获取指定属性的值。

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
Public Function GetValue(Of T) ( _
    property As GraphProperty, _
    schemaForInheritedProperties As Graph _
) As T
public T GetValue<T>(
    GraphProperty property,
    Graph schemaForInheritedProperties
)
public:
generic<typename T>
T GetValue(
    GraphProperty^ property, 
    Graph^ schemaForInheritedProperties
)
member GetValue : 
        property:GraphProperty * 
        schemaForInheritedProperties:Graph -> 'T 
JScript 不支持泛型类型或方法。

类型参数

  • T
    要返回的数据的类型

参数

返回值

类型:T
给定属性的值。

.NET Framework 安全性

请参见

参考

GraphObject 类

GetValue 重载

Microsoft.VisualStudio.GraphModel 命名空间