共用方式為


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

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

語法

'宣告
Public Function AddNewProperty ( _
    id As String, _
    dataType As Type, _
    callback As Func<(Of <<'(GraphMetadata>)>>) _
) As GraphProperty
public GraphProperty AddNewProperty(
    string id,
    Type dataType,
    Func<(Of <<'(GraphMetadata>)>>) callback
)
public:
GraphProperty^ AddNewProperty(
    String^ id, 
    Type^ dataType, 
    Func<(Of <<'(GraphMetadata>)>>)^ callback
)
member AddNewProperty : 
        id:string * 
        dataType:Type * 
        callback:Func<(Of <<'(GraphMetadata>)>>) -> GraphProperty 
public function AddNewProperty(
    id : String, 
    dataType : Type, 
    callback : Func<(Of <<'(GraphMetadata>)>>)
) : GraphProperty

參數

  • callback
    型別:System.Func<GraphMetadata>

傳回值

型別:Microsoft.VisualStudio.GraphModel.GraphProperty

.NET Framework 安全性

請參閱

參考

GraphPropertyCollection 類別

AddNewProperty 多載

Microsoft.VisualStudio.GraphModel 命名空間