TmdlSerializer.DeserializeModelFromCompressedFile 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
DeserializeModelFromCompressedFile(String) |
Deserializes the set of TMDL documents in the specified compressed archive-file to its model object equivalent. |
DeserializeModelFromCompressedFile(String, MetadataDeserializationOptions) |
Deserializes the set of TMDL documents in the specified compressed archive-file to its model object equivalent. |
DeserializeModelFromCompressedFile(String)
Deserializes the set of TMDL documents in the specified compressed archive-file to its model object equivalent.
public static Microsoft.AnalysisServices.Tabular.Model DeserializeModelFromCompressedFile (string path);
static member DeserializeModelFromCompressedFile : string -> Microsoft.AnalysisServices.Tabular.Model
Public Shared Function DeserializeModelFromCompressedFile (path As String) As Model
Parameters
- path
- String
The path to the compressed file.
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 compressed file contains TMDL text in an invalid format.
The content in the compressed file contains TMDL text is in valid format, but contains invalid metadata.
Applies to
DeserializeModelFromCompressedFile(String, MetadataDeserializationOptions)
Deserializes the set of TMDL documents in the specified compressed archive-file to its model object equivalent.
public static Microsoft.AnalysisServices.Tabular.Model DeserializeModelFromCompressedFile (string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options);
static member DeserializeModelFromCompressedFile : string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions -> Microsoft.AnalysisServices.Tabular.Model
Public Shared Function DeserializeModelFromCompressedFile (path As String, options As MetadataDeserializationOptions) As Model
Parameters
- path
- String
The path to the compressed file.
- 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 compressed file contains TMDL text in an invalid format.
The content in the compressed file contains TMDL text is in valid format, but contains invalid metadata.