JsonSerializer.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.
Generate the JSON schema for the specified type of object.
public static string GenerateSchema (Type objectType, Microsoft.AnalysisServices.Tabular.SerializeOptions options = default, int dbCompatibilityLevel = -3, Microsoft.AnalysisServices.CompatibilityMode compatibilityMode = Microsoft.AnalysisServices.CompatibilityMode.Unknown);
static member GenerateSchema : Type * Microsoft.AnalysisServices.Tabular.SerializeOptions * int * Microsoft.AnalysisServices.CompatibilityMode -> string
Public Shared Function GenerateSchema (objectType As Type, Optional options As SerializeOptions = Nothing, Optional dbCompatibilityLevel As Integer = -3, Optional compatibilityMode As CompatibilityMode = Microsoft.AnalysisServices.CompatibilityMode.Unknown) As String
Parameters
- objectType
- Type
The type of object to generate the schema for.
- options
- SerializeOptions
The serialization options.
- dbCompatibilityLevel
- Int32
The target database compatibility level.
- compatibilityMode
- CompatibilityMode
The compatibility mode of the target server.
Returns
The JSON schema for the object at the target compatibility level, based on the serialization options.
Remarks
The current implementation only supports generating schema for database objects.