Class
SerializationInfo

A wrapper for the (de)serialization data.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class SerializationInfo

Inheritance: objectSerializationInfo

Constructors

SerializationInfo(Type)

Initializes a new instance of the SerializationInfo class.

Declaration

cs-api-definition
public SerializationInfo(Type ownerType)

Parameters

ownerType

Type

Type of the owner.

SerializationInfo(string)

Initializes a new instance of the SerializationInfo class.

Declaration

cs-api-definition
public SerializationInfo(string nodeName)

Parameters

nodeName

string

Label of the node.

SerializationInfo(string, Type)

Initializes a new instance of the SerializationInfo class.

Declaration

cs-api-definition
public SerializationInfo(string nodeName, Type ownerType)

Parameters

nodeName

string

Name of the node.

ownerType

Type

Type of the owner.

Properties

FullName

Gets the node namespace.

Declaration

cs-api-definition
protected string FullName { get; }

Property Value

string

NodeName

Gets or sets the name of the node.

Declaration

cs-api-definition
protected string NodeName { get; }

Property Value

string

The name of the node.

OwnerType

Gets or sets the type of the owner.

Declaration

cs-api-definition
public Type OwnerType { get; set; }

Property Value

Type

The type of the owner.

this[string]

Gets or sets the object with the specified property name.

Declaration

cs-api-definition
public object this[string propertyName] { get; set; }

Parameters

propertyName

string

Property Value

object

Methods

CreateDiagramInfo(string)

Creates the diagram info from the given string which supposedly contains a diagram serialization (XML) string.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames")]
public static SerializationInfo CreateDiagramInfo(string serializationString)

Parameters

serializationString

string

The serialization string.

Returns

SerializationInfo

CreateItemsInfo(string)

Creates the items info.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames")]
public static SerializationInfo CreateItemsInfo(string serializationString)

Parameters

serializationString

string

The serialization string.

Returns

SerializationInfo

CreateMetadataInfo(string)

Creates the metadata info.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames")]
public static SerializationInfo CreateMetadataInfo(string serializationString)

Parameters

serializationString

string

The serialization string.

Returns

SerializationInfo

GetString()

Gets the string.

Declaration

cs-api-definition
public string GetString()

Returns

string

GetXml()

Returns the XML of this serialization information.

Declaration

cs-api-definition
public XElement GetXml()

Returns

XElement

GetXmlStream()

Gets the stream.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
public Stream GetXmlStream()

Returns

Stream

Merge(SerializationInfo)

Merges the current SerializationInfo with the specified instance.

Declaration

cs-api-definition
public void Merge(SerializationInfo serializationInfo)

Parameters

serializationInfo

SerializationInfo

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()