GraphPropertyCollection::AddNewProperty Method (String^, Type^)
Visual Studio 2015
Registers a new GraphProperty with the default metadata creator.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Parameters
- id
-
Type:
System::String^
Unique Id of the GraphProperty
- dataType
-
Type:
System::Type^
The type for data associated with the GraphProperty
Return Value
Type: Microsoft.VisualStudio.GraphModel::GraphProperty^The newly registered GraphProperty object
| Exception | Condition |
|---|---|
| ArgumentNullException | thrown if id is null -or- thrown if dataType is null |
| InvalidOperationException | thrown if id is empty string |
Show: