共用方式為


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

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
Public Function AddNewProperty ( _
    id As String, _
    dataType As Type, _
    metadataGraph As Graph _
) As GraphProperty
public GraphProperty AddNewProperty(
    string id,
    Type dataType,
    Graph metadataGraph
)
public:
GraphProperty^ AddNewProperty(
    String^ id, 
    Type^ dataType, 
    Graph^ metadataGraph
)
member AddNewProperty : 
        id:string * 
        dataType:Type * 
        metadataGraph:Graph -> GraphProperty 
public function AddNewProperty(
    id : String, 
    dataType : Type, 
    metadataGraph : Graph
) : GraphProperty

參數

傳回值

型別:Microsoft.VisualStudio.GraphModel.GraphProperty

.NET Framework 安全性

請參閱

參考

GraphPropertyCollection 類別

AddNewProperty 多載

Microsoft.VisualStudio.GraphModel 命名空間