TmdlSerializer.SerializeDatabase 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.
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.
public static string SerializeDatabase (Microsoft.AnalysisServices.Tabular.Database db);
static member SerializeDatabase : Microsoft.AnalysisServices.Tabular.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)
Serializes an in-memory Database to TMDL text content using the specified options.
public static string SerializeDatabase (Microsoft.AnalysisServices.Tabular.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);
static member SerializeDatabase : Microsoft.AnalysisServices.Tabular.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.