Share via


MetadataSerializationContext.ToDatabase Method

Definition

Overloads

ToDatabase(Object)

Creates a new database based on the content of the metadata documents that are stored in the context.

ToDatabase(MetadataDeserializationOptions, Object)

Creates a new database based on the content of the metadata documents that are stored in the context.

ToDatabase(Object)

Creates a new database based on the content of the metadata documents that are stored in the context.

public Microsoft.AnalysisServices.Tabular.Database ToDatabase (object context = default);
member this.ToDatabase : obj -> Microsoft.AnalysisServices.Tabular.Database
Public Function ToDatabase (Optional context As Object = Nothing) As Database

Parameters

context
Object

An optional user context that will be associated with the serialization operation.

Returns

A Database that is constructed based on the documents in the context.

Exceptions

There are no metadata documents that are loaded into the context.

Remarks

The operation of deserializing the metadata content of the documents in the context might raise exceptions that are specific to the style of the content that is being deserialized; for example, a deserialization of TMDL content, can result in a TmdlFormatException or a TmdlSerializationException that is thrown for errors in the documents.

Applies to

ToDatabase(MetadataDeserializationOptions, Object)

Creates a new database based on the content of the metadata documents that are stored in the context.

public Microsoft.AnalysisServices.Tabular.Database ToDatabase (Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options, object context = default);
member this.ToDatabase : Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions * obj -> Microsoft.AnalysisServices.Tabular.Database
Public Function ToDatabase (options As MetadataDeserializationOptions, Optional context As Object = Nothing) As Database

Parameters

options
MetadataDeserializationOptions

The options for the deserialization action.

context
Object

An optional user context that will be associated with the serialization operation.

Returns

A Database that is constructed based on the documents in the context.

Exceptions

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

There are no metadata documents that are loaded into the context.

Remarks

The operation of deserializing the metadata content of the documents in the context might raise exceptions that are specific to the style of the content that is being deserialized; for example, a deserialization of TMDL content, can result in a TmdlFormatException or a TmdlSerializationException that is thrown for errors in the documents.

Applies to