GraphPropertyCollection.AddNewProperty 方法 (String, Type, Graph, GraphMetadata)

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

语法

声明
Public Function AddNewProperty ( _
    id As String, _
    dataType As Type, _
    metadataGraph As Graph, _
    metadata As GraphMetadata _
) As GraphProperty
public GraphProperty AddNewProperty(
    string id,
    Type dataType,
    Graph metadataGraph,
    GraphMetadata metadata
)
public:
GraphProperty^ AddNewProperty(
    String^ id, 
    Type^ dataType, 
    Graph^ metadataGraph, 
    GraphMetadata^ metadata
)
member AddNewProperty : 
        id:string * 
        dataType:Type * 
        metadataGraph:Graph * 
        metadata:GraphMetadata -> GraphProperty 
public function AddNewProperty(
    id : String, 
    dataType : Type, 
    metadataGraph : Graph, 
    metadata : GraphMetadata
) : GraphProperty

参数

返回值

类型:Microsoft.VisualStudio.GraphModel.GraphProperty

.NET Framework 安全性

请参见

参考

GraphPropertyCollection 类

AddNewProperty 重载

Microsoft.VisualStudio.GraphModel 命名空间