Share via


MetadataSerializationContext.LoadFromModel Method

Definition

Overloads

LoadFromModel(Model, Object)

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

LoadFromModel(Model, MetadataSerializationOptions, Object)

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

LoadFromModel(Model, Object)

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

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

Parameters

model
Model

A Model that is the source for the metadata.

context
Object

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

Exceptions

The specified nodel 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

LoadFromModel(Model, MetadataSerializationOptions, Object)

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

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

Parameters

model
Model

A Model 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 model 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