GraphPropertyCollection.AddNewProperty Method (String, Type, Graph)
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
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
Parameters
- id
Type: System.String
- dataType
Type: System.Type
- metadataGraph
Type: Microsoft.VisualStudio.GraphModel.Graph
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphProperty
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.