Adds integrated support for the roundtripping of data associated with graph elements.
Namespace: yWorks.yFiles.Graph.WebAssembly: yFilesServer (in yFilesServer.dll) Version: 1.8.0.0 (1.8)
Syntax
C# |
---|
public virtual void AddMapper<K, V>( Object tag, string name ) where K : class |
Visual Basic |
---|
Public Overridable Sub AddMapper(Of K As Class, V) ( _ tag As Object, _ name As String _ ) |
Parameters
- tag
- Type: System..::..Object
The tag that is to be used for the graph's mapper registry
- name
- Type: System..::..String
The name of the attribute that is to be used for GraphML io.
Type Parameters
- K
- The type for which to store the attribute (mostly INode or IEdge)
- V
- The type of the attribute to be stored.
Remarks
Calling this method after the creation of this instance will prepare the io mechanism
to read and write the associated data from the requests and to the responses.
Also the corresponding IMapper will be automatically registered with
the graph's IMapperRegistry using the provided key on the graph instances
created by CreateRoundtripGraph()()()()