Share via


MetadataSerializationContext Class

Definition

A base class for a metadata serialization context, that contains a set of documents with the content of the metadata.

public abstract class MetadataSerializationContext : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationManagerBase, System.Collections.Generic.IEnumerable<Microsoft.AnalysisServices.Tabular.Serialization.MetadataDocument>
type MetadataSerializationContext = class
    inherit MetadataSerializationManagerBase
    interface seq<MetadataDocument>
    interface IEnumerable
Public MustInherit Class MetadataSerializationContext
Inherits MetadataSerializationManagerBase
Implements IEnumerable(Of MetadataDocument)
Inheritance
MetadataSerializationContext
Implements

Properties

Documents

Gets the logical-paths of the documents that are contained in the context.

Host

Gets and sets a host that implements the IMetadataSerializationHost in order to be notified of events during on-going serialization activity.

Item[String]

Gets the metadata document that is indexed by the specified logical-path.

Style

Gets the style in which the content is serialized in the set of documents.

Methods

Clear()

Clear all the documents from the context.

Create(MetadataSerializationStyle, Database, MetadataSerializationOptions)

Creates a new instance of the MetadataSerializationContext class, and load all the documents that are the result of serializing the specified database using the given options in the provided style.

Create(MetadataSerializationStyle, Database)

Creates a new instance of the MetadataSerializationContext class, and load all the documents that are the result of serializing the specified database in the provided style.

Create(MetadataSerializationStyle, Model, MetadataSerializationOptions)

Creates a new instance of the MetadataSerializationContext class, and load all the documents that are the result of serializing the specified model using the given options in the provided style.

Create(MetadataSerializationStyle, Model)

Creates a new instance of the MetadataSerializationContext class, and load all the documents that are the result of serializing the specified model in the provided style.

Create(MetadataSerializationStyle)

Creates a new instance of the MetadataSerializationContext class, without any loaded documents.

GetEnumerator()

Returns an enumerator that iterates through the collection.

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.

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.

ReadFromDocument(Stream)

Read the content of the documnet, provided by the specified stream and store it in the context.

ReadFromDocument(String, Stream)

Read the content of the documnet, provided by the specified stream and store it in the context under the specified logical path.

ReadFromDocument(String, TextReader, Encoding)

Read the content of the documnet, provided by the specified reader and store it in the context under the specified logical path.

ReadFromDocument(TextReader, Encoding)

Read the content of the documnet, provided by the specified reader and store it in the context.

RemoveDocument(String)

Removes a metadata document from the set of documents in the context.

ToDatabase(MetadataDeserializationOptions, Object)

Creates a new database based on the content of the metadata documents that are stored in the context.

ToDatabase(Object)

Creates a new database based on the content of the metadata documents that are stored in the context.

ToModel(MetadataDeserializationOptions, Object)

Creates a new model based on the content of the metadata documents that are stored in the context.

ToModel(Object)

Creates a new model based on the content of the metadata documents that are stored in the context.

UpdateModel(Model, MetadataDeserializationOptions, Object)

Updates the provided Model based on the content of the metadata documents that are stored in the context.

UpdateModel(Model, Object)

Updates the provided Model based on the content of the metadata documents that are stored in the context.

WriteToDocument(String, Stream)

Writing the context that is indexed by the specified logical-path into the provided document.

WriteToDocument(String, TextWriter, Encoding)

Writing the context that is indexed by the specified logical-path into the provided writer.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Applies to