ModelXmlSerializer.SerializeDataSchemaModel Method (DataSchemaModel, XmlWriter, IEnumerable<Type>)
Serializes the data schema model.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Shared Sub SerializeDataSchemaModel ( _
dataSchemaModel As DataSchemaModel, _
writer As XmlWriter, _
annotationTypesToInclude As IEnumerable(Of Type) _
)
'Usage
Dim dataSchemaModel As DataSchemaModel
Dim writer As XmlWriter
Dim annotationTypesToInclude As IEnumerable(Of Type)
ModelXmlSerializer.SerializeDataSchemaModel(dataSchemaModel, _
writer, annotationTypesToInclude)
public static void SerializeDataSchemaModel(
DataSchemaModel dataSchemaModel,
XmlWriter writer,
IEnumerable<Type> annotationTypesToInclude
)
public:
static void SerializeDataSchemaModel(
DataSchemaModel^ dataSchemaModel,
XmlWriter^ writer,
IEnumerable<Type^>^ annotationTypesToInclude
)
public static function SerializeDataSchemaModel(
dataSchemaModel : DataSchemaModel,
writer : XmlWriter,
annotationTypesToInclude : IEnumerable<Type>
)
static member SerializeDataSchemaModel :
dataSchemaModel:DataSchemaModel *
writer:XmlWriter *
annotationTypesToInclude:IEnumerable<Type> -> unit
Parameters
- dataSchemaModel
Type: Microsoft.Data.Schema.SchemaModel.DataSchemaModel
The data schema model
- writer
Type: System.Xml.XmlWriter
The XML writer
- annotationTypesToInclude
Type: System.Collections.Generic.IEnumerable<Type>
List of annotation types to include
.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.