GraphPropertyCollection::AddNewProperty Method (String^, Type^)

 

Registers a new GraphProperty with the default metadata creator.

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

public:
GraphProperty^ AddNewProperty(
	String^ id,
	Type^ dataType
)

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

Return to top
Show: