MetadataSerializationContext.LoadFromDatabase 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
LoadFromDatabase(Database, Object) |
Load the context with a the set of documents that represent the provided database. |
LoadFromDatabase(Database, MetadataSerializationOptions, Object) |
Load the context with a the set of documents that represent the provided database using the given options. |
LoadFromDatabase(Database, Object)
Load the context with a the set of documents that represent the provided database.
public void LoadFromDatabase (Microsoft.AnalysisServices.Tabular.Database db, object context = default);
member this.LoadFromDatabase : Microsoft.AnalysisServices.Tabular.Database * obj -> unit
Public Sub LoadFromDatabase (db As Database, Optional context As Object = Nothing)
Parameters
- context
- Object
An optional user context that will be associated with the serialization operation.
Exceptions
The specified database is a null reference (Nothing in Visual Basic).
Remarks
Any metadata documents that are loaded in the context prior to the execution will be removed.
If a user-context is specified it will be included in the notifications to the serialization host.
Applies to
LoadFromDatabase(Database, MetadataSerializationOptions, Object)
Load the context with a the set of documents that represent the provided database using the given options.
public void LoadFromDatabase (Microsoft.AnalysisServices.Tabular.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options, object context = default);
member this.LoadFromDatabase : Microsoft.AnalysisServices.Tabular.Database * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions * obj -> unit
Public Sub LoadFromDatabase (db As Database, options As MetadataSerializationOptions, Optional context As Object = Nothing)
Parameters
- options
- MetadataSerializationOptions
The options for the serialization operation.
- context
- Object
An optional user context that will be associated with the serialization operation.
Exceptions
- The specified database is a null reference (Nothing in Visual Basic).
- The specified options instance is a null reference (Nothing in Visual Basic).
Remarks
Any metadata documents that are loaded in the context prior to the execution will be removed.
If a user-context is specified it will be included in the notifications to the serialization host.