Partilhar via


Método GraphPropertyCollection.AddNewProperty (String, Type, Func)

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (em Microsoft.VisualStudio.GraphModel.dll)

Sintaxe

'Declaração
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

Parâmetros

  • callback
    Tipo: System.Func<GraphMetadata>

Valor de retorno

Tipo: Microsoft.VisualStudio.GraphModel.GraphProperty

Segurança do .NET Framework

Consulte também

Referência

GraphPropertyCollection Classe

Sobrecargas AddNewProperty

Namespace Microsoft.VisualStudio.GraphModel