Прочетете на английски

Споделяне чрез


TmdlSerializer.SerializeDatabase Method

Definition

Overloads

SerializeDatabase(Database)

Serializes an in-memory Database to TMDL text content.

SerializeDatabase(Database, MetadataSerializationOptions)

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

SerializeDatabase(Database)

Serializes an in-memory Database to TMDL text content.

C#
public static string SerializeDatabase (Microsoft.AnalysisServices.Database db);

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

Analysis Services SDK for .NET latest
Продукт Версии
Analysis Services SDK for .NET latest

SerializeDatabase(Database, MetadataSerializationOptions)

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

C#
public static string SerializeDatabase (Microsoft.AnalysisServices.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);

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

Analysis Services SDK for .NET latest
Продукт Версии
Analysis Services SDK for .NET latest