Share via


MetadataSerializationContext.ToModel Method

Definition

Overloads

ToModel(Object)

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

ToModel(MetadataDeserializationOptions, Object)

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

ToModel(Object)

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

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

Parameters

context
Object

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

Returns

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

ToModel(MetadataDeserializationOptions, Object)

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

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

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