SerializationContext Constructor (DomainXmlSerializerDirectory, String, SerializationResult)
Create a serialization context with given source/destination location and SeralizationResult.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Sub New ( _
directory As DomainXmlSerializerDirectory, _
location As String, _
serializationResult As SerializationResult _
)
public SerializationContext(
DomainXmlSerializerDirectory directory,
string location,
SerializationResult serializationResult
)
public:
SerializationContext(
DomainXmlSerializerDirectory^ directory,
String^ location,
SerializationResult^ serializationResult
)
new :
directory:DomainXmlSerializerDirectory *
location:string *
serializationResult:SerializationResult -> SerializationContext
public function SerializationContext(
directory : DomainXmlSerializerDirectory,
location : String,
serializationResult : SerializationResult
)
Parameters
- directory
Type: Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory
Directory to look up serializers, cannot be null.
- location
Type: System.String
Source/destination location of this context, it's usually the file path, but it can be any string, including null.
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
SerializationResult to be used by this context. If null is passed, a new SerializationResult will be created.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.