GraphPathSerializationDictionary Class

 

The CommonPaths lets you remap certain attribute values in the DGML.

For example, it is nice to have a file path be relative to the solution so the file can be found when that solution is moved. To solve this you can define a path called "SolutionDir" with the value of the full path. Then the GraphSerializer will substitute this path wherever it is found in the DGML with the syntax "$(name)" where name is the Id of the path you provided and it will write out the definition of the paths that are used in a Paths block at the end of the file. When this DGML document is loaded the paths will be substituted with the values in the current CommonPaths and then all the variable references will be expanded with these new values.

So a solution folder on your computer might be on drive C someplace, and on drive D on another computer and everything will still just work as expected.

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

System::Object
  Microsoft.VisualStudio.GraphModel::GraphPathSerializationDictionary

public ref class GraphPathSerializationDictionary : IDictionary<String^, String^>, 
	ICollection<KeyValuePair<String^, String^>>, IEnumerable<KeyValuePair<String^, String^>>, 
	IEnumerable

NameDescription
System_CAPS_pubmethodGraphPathSerializationDictionary()

Create empty list of common paths.

System_CAPS_pubmethodGraphPathSerializationDictionary(GraphPathSerializationDictionary^)

Create a copy of the CommonPaths from another object.

NameDescription
System_CAPS_pubpropertyCount

Get the number of paths in the collection

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the System.Collections.Generic.ICollection is read-only.

System_CAPS_pubpropertyItem[String^]

Gets or sets the element that has the specified key.

System_CAPS_pubpropertyKeys

Gets an System.Collections.Generic.ICollection that contains the keys of the System.Collections.Generic.IDictionary.

System_CAPS_pubpropertyNames

Return a snapshot of the current path names

System_CAPS_pubpropertyValues

Gets an System.Collections.Generic.ICollection that contains the values of the System.Collections.Generic.IDictionary.

NameDescription
System_CAPS_pubmethodAdd(KeyValuePair<String^, String^>)

Add a path with the given name and value. An empty path is ignored.

Trailing slash is removed.

System_CAPS_pubmethodAdd(String^, String^)

Add a path with the given name and value. An empty path is ignored.

Trailing slash is removed.

System_CAPS_pubmethodAddDefaultPaths()

Add the default paths that we can find using the current process Environment.

System_CAPS_pubmethodClear()

Removes all items from the System.Collections.Generic.ICollection.

System_CAPS_pubmethodContains(KeyValuePair<String^, String^>)

Determines if the given link is in this collection.

System_CAPS_pubmethodContainsKey(String^)

Determines whether the System.Collections.Generic.IDictionary contains an element that has the specified key.

System_CAPS_pubmethodCopyTo(array<KeyValuePair<String^, String^>>^, Int32)

Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetPath(String^)

Get the value of the path with the given name.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLookupName(String^)

Find the name of the path with the specified value

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemove(KeyValuePair<String^, String^>)

Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection.

System_CAPS_pubmethodRemove(String^)

Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetValue(String^, String^)

Gets the value associated with the specified key.

NameDescription
System_CAPS_pubeventCommonPathsAdded

This event can be used to insert custom common paths after AddCommonPaths is called.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable::GetEnumerator()

Returns an enumerator that iterates through the collection.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: