TmdlSerializer.DeserializeModelFromFolder Method

Definition

Overloads

DeserializeModelFromFolder(String)

Deserializes the set of TMDL documents in the specified folder to its model object equivalent.

DeserializeModelFromFolder(String, MetadataDeserializationOptions)

Deserializes the set of TMDL documents in the specified folder to its model object equivalent.

DeserializeModelFromFolder(String)

Deserializes the set of TMDL documents in the specified folder to its model object equivalent.

public static Microsoft.AnalysisServices.Tabular.Model DeserializeModelFromFolder (string path);
static member DeserializeModelFromFolder : string -> Microsoft.AnalysisServices.Tabular.Model
Public Shared Function DeserializeModelFromFolder (path As String) As Model

Parameters

path
String

The path of the folder in which the model documents exist.

Returns

The Model instance that was created based on the TMDL documents.

Exceptions

The specified path is a null reference (Nothing in Visual Basic) or empty.

The specified path does not exist.

The content in the folder contains TMDL text in an invalid format.

The content in the folder contains TMDL text is in valid format, but contains invalid metadata.

Applies to

DeserializeModelFromFolder(String, MetadataDeserializationOptions)

Deserializes the set of TMDL documents in the specified folder to its model object equivalent.

public static Microsoft.AnalysisServices.Tabular.Model DeserializeModelFromFolder (string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options);
static member DeserializeModelFromFolder : string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions -> Microsoft.AnalysisServices.Tabular.Model
Public Shared Function DeserializeModelFromFolder (path As String, options As MetadataDeserializationOptions) As Model

Parameters

path
String

The path of the folder in which the model documents exist.

options
MetadataDeserializationOptions

The options for the deserialization action.

Returns

The Model instance that was created based on the TMDL documents.

Exceptions

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

The specified path does not exist.

The content in the folder contains TMDL text in an invalid format.

The content in the folder contains TMDL text is in valid format, but contains invalid metadata.

Applies to