TmdlSerializer.DeserializeDatabaseFromFolder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeserializeDatabaseFromFolder(String) |
Deserializes the set of TMDL documents in the specified folder to its database object equivalent. |
DeserializeDatabaseFromFolder(String, MetadataDeserializationOptions) |
Deserializes the set of TMDL documents in the specified folder to its database object equivalent. |
DeserializeDatabaseFromFolder(String)
Deserializes the set of TMDL documents in the specified folder to its database object equivalent.
public static Microsoft.AnalysisServices.Tabular.Database DeserializeDatabaseFromFolder (string path);
static member DeserializeDatabaseFromFolder : string -> Microsoft.AnalysisServices.Tabular.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(String, MetadataDeserializationOptions)
Deserializes the set of TMDL documents in the specified folder to its database object equivalent.
public static Microsoft.AnalysisServices.Tabular.Database DeserializeDatabaseFromFolder (string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options);
static member DeserializeDatabaseFromFolder : string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions -> Microsoft.AnalysisServices.Tabular.Database
Public Shared Function DeserializeDatabaseFromFolder (path As String, options As MetadataDeserializationOptions) As Database
Parameters
- path
- String
The path of the folder in which the model documents exist.
- options
- MetadataDeserializationOptions
The options for the deserialization action.
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 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.
Remarks
If the folder does not contain the properties of the database in any of the documents, the returned database will have default properties.