Share via


SchemaWriter.TryWriteSchema Method

Definition

Overloads

TryWriteSchema(IEdmModel, Func<String,XmlWriter>, IEnumerable<EdmError>)

Outputs Schema artifacts to the provided writers.

TryWriteSchema(IEdmModel, XmlWriter, IEnumerable<EdmError>)

Outputs a Schema artifact to the provided writer.

TryWriteSchema(IEdmModel, Func<String,XmlWriter>, IEnumerable<EdmError>)

Outputs Schema artifacts to the provided writers.

public static bool TryWriteSchema (this Microsoft.OData.Edm.IEdmModel model, Func<string,System.Xml.XmlWriter> writerProvider, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryWriteSchema : Microsoft.OData.Edm.IEdmModel * Func<string, System.Xml.XmlWriter> * seq -> bool
<Extension()>
Public Function TryWriteSchema (model As IEdmModel, writerProvider As Func(Of String, XmlWriter), ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

model
IEdmModel

Model to be written.

writerProvider
Func<String,XmlWriter>

A delegate that takes in a Schema namespace name and returns an XmlWriter to write the Schema to.

errors
IEnumerable<EdmError>

Errors that prevented successful serialization, or no errors if serialization was successful.

Returns

A value indicating whether serialization was successful.

Applies to

TryWriteSchema(IEdmModel, XmlWriter, IEnumerable<EdmError>)

Outputs a Schema artifact to the provided writer.

public static bool TryWriteSchema (this Microsoft.OData.Edm.IEdmModel model, System.Xml.XmlWriter writer, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryWriteSchema : Microsoft.OData.Edm.IEdmModel * System.Xml.XmlWriter * seq -> bool
<Extension()>
Public Function TryWriteSchema (model As IEdmModel, writer As XmlWriter, ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

model
IEdmModel

Model to be written.

writer
XmlWriter

XmlWriter the generated Schema will be written to.

errors
IEnumerable<EdmError>

Errors that prevented successful serialization, or no errors if serialization was successful.

Returns

A value indicating whether serialization was successful.

Applies to