TmdlSerializer.GenerateSchema Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GenerateSchema(Stream) |
Generates the JSON schema of the TMDL info-set with default options, and writes them into the provided stream. |
GenerateSchema(Stream, MetadataSchemaSerializationOptions) |
Generates the JSON schema of the TMDL info-set based on the provided options, and writes them into the provided stream. |
GenerateSchema() |
Generates the JSON schema of the TMDL info-set with default options. |
GenerateSchema(MetadataSchemaSerializationOptions) |
Generates the JSON schema of the TMDL info-set based on the provided options. |
GenerateSchema(Stream)
Generates the JSON schema of the TMDL info-set with default options, and writes them into the provided stream.
public static void GenerateSchema (System.IO.Stream document);
static member GenerateSchema : System.IO.Stream -> unit
Public Shared Sub GenerateSchema (document As Stream)
Parameters
- document
- Stream
The stream that is used to persist the JSON Schema into.
Exceptions
The specified stream is a null reference (Nothing in Visual Basic).
Applies to
GenerateSchema(Stream, MetadataSchemaSerializationOptions)
Generates the JSON schema of the TMDL info-set based on the provided options, and writes them into the provided stream.
public static void GenerateSchema (System.IO.Stream document, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSchemaSerializationOptions options);
static member GenerateSchema : System.IO.Stream * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSchemaSerializationOptions -> unit
Public Shared Sub GenerateSchema (document As Stream, options As MetadataSchemaSerializationOptions)
Parameters
- document
- Stream
The stream that is used to persist the JSON Schema into.
The options for the schema generation action.
Exceptions
- The specified stream is a null reference (Nothing in Visual Basic).
- The specified options instance is a null reference (Nothing in Visual Basic).
Applies to
GenerateSchema()
GenerateSchema(MetadataSchemaSerializationOptions)
Generates the JSON schema of the TMDL info-set based on the provided options.
public static string GenerateSchema (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSchemaSerializationOptions options);
static member GenerateSchema : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSchemaSerializationOptions -> string
Public Shared Function GenerateSchema (options As MetadataSchemaSerializationOptions) As String
Parameters
The options for the schema generation action.
Returns
A String that contains the JSON Schema.
Exceptions
The specified options instance is a null reference (Nothing in Visual Basic).