TmdlSerializer.DeserializeDatabaseFromDocumentCollection 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
DeserializeDatabaseFromDocumentCollection(MetadataSerializationContext, Object) |
Creates a new database based on the content of the metadata documents that are stored in the context. |
DeserializeDatabaseFromDocumentCollection(MetadataSerializationContext, MetadataDeserializationOptions, Object) |
Creates a new database based on the content of the metadata documents that are stored in the context. |
DeserializeDatabaseFromDocumentCollection(MetadataSerializationContext, Object)
Creates a new database based on the content of the metadata documents that are stored in the context.
public static Microsoft.AnalysisServices.Database DeserializeDatabaseFromDocumentCollection (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext serializationContext, object userContext = default);
static member DeserializeDatabaseFromDocumentCollection : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext * obj -> Microsoft.AnalysisServices.Database
Public Shared Function DeserializeDatabaseFromDocumentCollection (serializationContext As MetadataSerializationContext, Optional userContext As Object = Nothing) As Database
Parameters
- serializationContext
- MetadataSerializationContext
The serialization context.
- userContext
- Object
An optional user context that will be associated with the serialization operation.
Returns
A Database that is constructed based on the documents in the context.
Exceptions
The specified serialization-context is a null reference (Nothing in Visual Basic).
There are no metadata documents that are loaded into the serialization-context.
Remarks
The operation of deserializing the metadata content of the document 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
DeserializeDatabaseFromDocumentCollection(MetadataSerializationContext, MetadataDeserializationOptions, Object)
Creates a new database based on the content of the metadata documents that are stored in the context.
public static Microsoft.AnalysisServices.Database DeserializeDatabaseFromDocumentCollection (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext serializationContext, Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options, object userContext = default);
static member DeserializeDatabaseFromDocumentCollection : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext * Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions * obj -> Microsoft.AnalysisServices.Database
Public Shared Function DeserializeDatabaseFromDocumentCollection (serializationContext As MetadataSerializationContext, options As MetadataDeserializationOptions, Optional userContext As Object = Nothing) As Database
Parameters
- serializationContext
- MetadataSerializationContext
The serialization context.
- options
- MetadataDeserializationOptions
The options for the deserialization action.
- userContext
- Object
An optional user context that will be associated with the serialization operation.
Returns
A Database that is constructed based on the documents in the context.
Exceptions
- The specified serialization-context is a null reference (Nothing in Visual Basic).
- The specified options instance is a null reference (Nothing in Visual Basic).
There are no metadata documents that are loaded into the serialization-context.
Remarks
The operation of deserializing the metadata content of the document 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.