JsonSerializer.GenerateSchema Method

Definition

Overloads

GenerateSchema(Type, SerializeOptions, Int32, CompatibilityMode)

Generates the JSON schema for JSON serialization of a given metadata object.

GenerateSchema(Type, SerializeOptions, Int32)

Generates the JSON schema for JSON serialization of a given metadata object.

GenerateSchema(Type, SerializeOptions)

Generates the JSON schema for JSON serialization of a given metadata object.

GenerateSchema(Type)

Generates the JSON schema for JSON serialization of a given metadata object.

GenerateSchema<T>()

Generates JSON schema for JSON serialization of given metadata object.

GenerateSchema<T>(SerializeOptions)

Generates JSON schema for JSON serialization of given metadata object.

GenerateSchema<T>(SerializeOptions, Int32)

Generates JSON schema for JSON serialization of given metadata object.

GenerateSchema(Type, SerializeOptions, Int32, CompatibilityMode)

Generates the JSON schema for JSON serialization of a given metadata object.

public static string GenerateSchema (Type objectType, Microsoft.AnalysisServices.Tabular.SerializeOptions options, int dbCompatibilityLevel, Microsoft.AnalysisServices.CompatibilityMode mode);
static member GenerateSchema : Type * Microsoft.AnalysisServices.Tabular.SerializeOptions * int * Microsoft.AnalysisServices.CompatibilityMode -> string
Public Shared Function GenerateSchema (objectType As Type, options As SerializeOptions, dbCompatibilityLevel As Integer, mode As CompatibilityMode) As String

Parameters

objectType
Type

Type of metadata object.

options
SerializeOptions

Serialization options.

dbCompatibilityLevel
Int32

Target compatibility level of the database (should be 1200 or later).

mode
CompatibilityMode

The compatibility mode of the target server.

Returns

JSON schema of the object.

Remarks

Generated schema will include only objects, properties and enums valid for the specified compatibility level.

Applies to

GenerateSchema(Type, SerializeOptions, Int32)

Generates the JSON schema for JSON serialization of a given metadata object.

public static string GenerateSchema (Type objectType, Microsoft.AnalysisServices.Tabular.SerializeOptions options, int dbCompatibilityLevel);
static member GenerateSchema : Type * Microsoft.AnalysisServices.Tabular.SerializeOptions * int -> string
Public Shared Function GenerateSchema (objectType As Type, options As SerializeOptions, dbCompatibilityLevel As Integer) As String

Parameters

objectType
Type

Type of metadata object.

options
SerializeOptions

Serialization options.

dbCompatibilityLevel
Int32

Target compatibility level of the database (should be 1200 or later).

Returns

JSON schema of the object.

Remarks

Generated schema will include only objects, properties and enums valid for the specified compatibility level.

Applies to

GenerateSchema(Type, SerializeOptions)

Generates the JSON schema for JSON serialization of a given metadata object.

public static string GenerateSchema (Type objectType, Microsoft.AnalysisServices.Tabular.SerializeOptions options);
static member GenerateSchema : Type * Microsoft.AnalysisServices.Tabular.SerializeOptions -> string
Public Shared Function GenerateSchema (objectType As Type, options As SerializeOptions) As String

Parameters

objectType
Type

Type of metadata object.

options
SerializeOptions

Serialization options.

Returns

JSON schema of the object.

Applies to

GenerateSchema(Type)

Generates the JSON schema for JSON serialization of a given metadata object.

public static string GenerateSchema (Type objectType);
static member GenerateSchema : Type -> string
Public Shared Function GenerateSchema (objectType As Type) As String

Parameters

objectType
Type

Type of metadata object.

Returns

JSON schema of the object.

Applies to

GenerateSchema<T>()

Generates JSON schema for JSON serialization of given metadata object.

public static string GenerateSchema<T> () where T : Microsoft.AnalysisServices.Tabular.MetadataObject;
static member GenerateSchema : unit -> string (requires 'T :> Microsoft.AnalysisServices.Tabular.MetadataObject)
Public Shared Function GenerateSchema(Of T As MetadataObject) () As String

Type Parameters

T

Type of Mmetadata object.

Returns

JSON schema of the object.

Applies to

GenerateSchema<T>(SerializeOptions)

Generates JSON schema for JSON serialization of given metadata object.

public static string GenerateSchema<T> (Microsoft.AnalysisServices.Tabular.SerializeOptions options) where T : Microsoft.AnalysisServices.Tabular.MetadataObject;
static member GenerateSchema : Microsoft.AnalysisServices.Tabular.SerializeOptions -> string (requires 'T :> Microsoft.AnalysisServices.Tabular.MetadataObject)
Public Shared Function GenerateSchema(Of T As MetadataObject) (options As SerializeOptions) As String

Type Parameters

T

Type of Mmetadata object.

Parameters

options
SerializeOptions

Serialization options.

Returns

JSON schema of the object.

Applies to

GenerateSchema<T>(SerializeOptions, Int32)

Generates JSON schema for JSON serialization of given metadata object.

public static string GenerateSchema<T> (Microsoft.AnalysisServices.Tabular.SerializeOptions options, int dbCompatibilityLevel) where T : Microsoft.AnalysisServices.Tabular.MetadataObject;
static member GenerateSchema : Microsoft.AnalysisServices.Tabular.SerializeOptions * int -> string (requires 'T :> Microsoft.AnalysisServices.Tabular.MetadataObject)
Public Shared Function GenerateSchema(Of T As MetadataObject) (options As SerializeOptions, dbCompatibilityLevel As Integer) As String

Type Parameters

T

Type of Mmetadata object.

Parameters

options
SerializeOptions

Serialization options.

dbCompatibilityLevel
Int32

Target compatibility level of the database (should be 1200 or later).

Returns

JSON schema of the object.

Remarks

Generated schema will include only objects, properties and enums valid for the specified compatibility level.

Applies to