Share via


TmdlSerializer.SerializeDatabase Method

Definition

Overloads

SerializeDatabase(Database)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Database to TMDL text content.

SerializeDatabase(Database, MetadataSerializationOptions)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Database to TMDL text content using the specified options.

SerializeDatabase(Database)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Database to TMDL text content.

public static string SerializeDatabase (Microsoft.AnalysisServices.Database db);
static member SerializeDatabase : Microsoft.AnalysisServices.Database -> string
Public Shared Function SerializeDatabase (db As Database) As String

Parameters

db
Database

The database to serialize.

Returns

A String with the TMDL text content.

Exceptions

The specified database object is a null reference (Nothing in Visual Basic).

Applies to

SerializeDatabase(Database, MetadataSerializationOptions)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Database to TMDL text content using the specified options.

public static string SerializeDatabase (Microsoft.AnalysisServices.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);
static member SerializeDatabase : Microsoft.AnalysisServices.Database * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions -> string
Public Shared Function SerializeDatabase (db As Database, options As MetadataSerializationOptions) As String

Parameters

db
Database

The database to serialize.

options
MetadataSerializationOptions

The options for the serialization action.

Returns

A String with the TMDL text content.

Exceptions

  • The specified database object is a null reference (Nothing in Visual Basic).
  • The specified options instance is a null reference (Nothing in Visual Basic).

The provided options include invalid settings.

Applies to