Share via


TmdlSerializer.DeserializeDatabaseFromFolder Method

Definition

Overloads

DeserializeDatabaseFromFolder(String)

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

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

DeserializeDatabaseFromFolder(MetadataDeserializationOptions, String)

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

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

DeserializeDatabaseFromFolder(String)

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

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

public static Microsoft.AnalysisServices.Database DeserializeDatabaseFromFolder (string path);
static member DeserializeDatabaseFromFolder : string -> Microsoft.AnalysisServices.Database
Public Shared Function DeserializeDatabaseFromFolder (path As String) As Database

Parameters

path
String

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

Returns

The Database 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.

Remarks

If the folder does not contain the properties of the database in any of the documents, the returned database will have default properties.

Applies to

DeserializeDatabaseFromFolder(MetadataDeserializationOptions, String)

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

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

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

Parameters

options
MetadataDeserializationOptions

The options for the deserialization action.

path
String

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

Returns

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

Exceptions

  • The specified options instance is a null reference (Nothing in Visual Basic).
  • 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.

Remarks

If the folder does not contain the properties of the database in any of the documents, the returned database will have default properties.

Applies to