Partager via


GraphPropertyCollection.AddNewProperty, méthode (String, Type, Func)

Espace de noms :  Microsoft.VisualStudio.GraphModel
Assembly :  Microsoft.VisualStudio.GraphModel (dans Microsoft.VisualStudio.GraphModel.dll)

Syntaxe

'Déclaration
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

Paramètres

  • callback
    Type : System.Func<GraphMetadata>

Valeur de retour

Type : Microsoft.VisualStudio.GraphModel.GraphProperty

Sécurité .NET Framework

Voir aussi

Référence

GraphPropertyCollection Classe

AddNewProperty, surcharge

Microsoft.VisualStudio.GraphModel, espace de noms