MetadataSerializationContext.LoadFromModel 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
LoadFromModel(Model, Object) |
Load the context with a the set of documents that represent the provided model. |
LoadFromModel(Model, MetadataSerializationOptions, Object) |
Load the context with a the set of documents that represent the provided model using the given options. |
LoadFromModel(Model, Object)
Load the context with a the set of documents that represent the provided model.
public void LoadFromModel (Microsoft.AnalysisServices.Tabular.Model model, object context = default);
member this.LoadFromModel : Microsoft.AnalysisServices.Tabular.Model * obj -> unit
Public Sub LoadFromModel (model As Model, Optional context As Object = Nothing)
Parameters
- context
- Object
An optional user context that will be associated with the serialization operation.
Exceptions
The specified nodel 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
LoadFromModel(Model, MetadataSerializationOptions, Object)
Load the context with a the set of documents that represent the provided model using the given options.
public void LoadFromModel (Microsoft.AnalysisServices.Tabular.Model model, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options, object context = default);
member this.LoadFromModel : Microsoft.AnalysisServices.Tabular.Model * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions * obj -> unit
Public Sub LoadFromModel (model As Model, 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 model 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.