Jaa


JsonSerializer.GenerateSchema Method

Definition

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.

Applies to