Share via


MetadataSerializationContext.LoadFromDatabase Method

Definition

Overloads

LoadFromDatabase(Database, Object)

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

Load the context with a the set of documents that represent the provided database.

LoadFromDatabase(Database, MetadataSerializationOptions, Object)

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

Load the context with a the set of documents that represent the provided database using the given options.

LoadFromDatabase(Database, Object)

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

Load the context with a the set of documents that represent the provided database.

public void LoadFromDatabase (Microsoft.AnalysisServices.Tabular.Database db, object context = default);
member this.LoadFromDatabase : Microsoft.AnalysisServices.Tabular.Database * obj -> unit
Public Sub LoadFromDatabase (db As Database, Optional context As Object = Nothing)

Parameters

db
Database

A Database that is the source for the metadata.

context
Object

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

Exceptions

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

Remarks

Any metadata documents that are loaded in the context prior to the execution will be removed.

If a user-context is specified it will be included in the notifications to the serialization host.

Applies to

LoadFromDatabase(Database, MetadataSerializationOptions, Object)

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

Load the context with a the set of documents that represent the provided database using the given options.

public void LoadFromDatabase (Microsoft.AnalysisServices.Tabular.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options, object context = default);
member this.LoadFromDatabase : Microsoft.AnalysisServices.Tabular.Database * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions * obj -> unit
Public Sub LoadFromDatabase (db As Database, options As MetadataSerializationOptions, Optional context As Object = Nothing)

Parameters

db
Database

A Database that is the source for the metadata.

options
MetadataSerializationOptions

The options for the serialization operation.

context
Object

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

Exceptions

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

Remarks

Any metadata documents that are loaded in the context prior to the execution will be removed.

If a user-context is specified it will be included in the notifications to the serialization host.

Applies to