Freigeben über


SerializationContext Constructors

Definition

Overloads

SerializationContext(DomainXmlSerializerDirectory)

Create a serialization context with no source/destination location information.

SerializationContext(DomainXmlSerializerDirectory, String)

Create a serialization context with given source/destination location.

SerializationContext(DomainXmlSerializerDirectory, String, SerializationResult)

Create a serialization context with given source/destination location and SeralizationResult.

SerializationContext(DomainXmlSerializerDirectory)

Create a serialization context with no source/destination location information.

public:
 SerializationContext(Microsoft::VisualStudio::Modeling::DomainXmlSerializerDirectory ^ directory);
public SerializationContext (Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory directory);
new Microsoft.VisualStudio.Modeling.SerializationContext : Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory -> Microsoft.VisualStudio.Modeling.SerializationContext
Public Sub New (directory As DomainXmlSerializerDirectory)

Parameters

directory
DomainXmlSerializerDirectory

Directory to look up serializers.

Applies to

SerializationContext(DomainXmlSerializerDirectory, String)

Create a serialization context with given source/destination location.

public:
 SerializationContext(Microsoft::VisualStudio::Modeling::DomainXmlSerializerDirectory ^ directory, System::String ^ location);
public SerializationContext (Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory directory, string location);
new Microsoft.VisualStudio.Modeling.SerializationContext : Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory * string -> Microsoft.VisualStudio.Modeling.SerializationContext
Public Sub New (directory As DomainXmlSerializerDirectory, location As String)

Parameters

directory
DomainXmlSerializerDirectory

Directory to look up serializers.

location
String

Source/destination location of this context, it's usually the file path, but it can be any string, including null.

Applies to

SerializationContext(DomainXmlSerializerDirectory, String, SerializationResult)

Create a serialization context with given source/destination location and SeralizationResult.

public:
 SerializationContext(Microsoft::VisualStudio::Modeling::DomainXmlSerializerDirectory ^ directory, System::String ^ location, Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult);
public SerializationContext (Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory directory, string location, Microsoft.VisualStudio.Modeling.SerializationResult serializationResult);
new Microsoft.VisualStudio.Modeling.SerializationContext : Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory * string * Microsoft.VisualStudio.Modeling.SerializationResult -> Microsoft.VisualStudio.Modeling.SerializationContext
Public Sub New (directory As DomainXmlSerializerDirectory, location As String, serializationResult As SerializationResult)

Parameters

directory
DomainXmlSerializerDirectory

Directory to look up serializers, cannot be null.

location
String

Source/destination location of this context, it's usually the file path, but it can be any string, including null.

serializationResult
SerializationResult

SerializationResult to be used by this context. If null is passed, a new SerializationResult will be created.

Applies to