Adds integrated support for the roundtripping of data associated with graph elements.
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()()()()
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, KeyScope scopeType, KeyType keyType ) where K : class |
Visual Basic |
---|
Public Overridable Sub AddMapper(Of K As Class, V) ( _ tag As Object, _ name As String, _ scopeType As KeyScope, _ keyType As KeyType _ ) |
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.
- scopeType
- Type: KeyScope
The graphml scope of the data
- keyType
- Type: KeyType
The type of data
Type Parameters
- K
- The type for which to store the attribute (mostly INode or IEdge)
- V
- The type of the attribute to be stored.