Jaa


MetadataSerializationContext.Create Method

Definition

Overloads

Create(MetadataSerializationStyle)

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

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)

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, 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, 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)

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

public static Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext Create (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle style);
static member Create : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext
Public Shared Function Create (style As MetadataSerializationStyle) As MetadataSerializationContext

Parameters

style
MetadataSerializationStyle

The style that match the documents that will be loaded into the context.

Returns

The newly created context.

Exceptions

The specified style is not a valid style.

Applies to

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.

public static Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext Create (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle style, Microsoft.AnalysisServices.Tabular.Database db);
static member Create : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle * Microsoft.AnalysisServices.Tabular.Database -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext
Public Shared Function Create (style As MetadataSerializationStyle, db As Database) As MetadataSerializationContext

Parameters

style
MetadataSerializationStyle

The style into the specified model that will be serialized in the context.

db
Database

The source database for the context.

Returns

The newly created context.

Exceptions

The specified database is a null reference (Nothing in Visual Basic).

The specified style is not a valid style.

Applies to

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.

public static Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext Create (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle style, Microsoft.AnalysisServices.Tabular.Model model);
static member Create : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle * Microsoft.AnalysisServices.Tabular.Model -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext
Public Shared Function Create (style As MetadataSerializationStyle, model As Model) As MetadataSerializationContext

Parameters

style
MetadataSerializationStyle

The style into the specified model that will be serialized in the context.

model
Model

The source model for the context.

Returns

The newly created context.

Exceptions

The specified nodel is a null reference (Nothing in Visual Basic).

The specified style is not a valid style.

Applies to

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.

public static Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext Create (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle style, Microsoft.AnalysisServices.Tabular.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);
static member Create : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle * Microsoft.AnalysisServices.Tabular.Database * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext
Public Shared Function Create (style As MetadataSerializationStyle, db As Database, options As MetadataSerializationOptions) As MetadataSerializationContext

Parameters

style
MetadataSerializationStyle

The style into the specified model that will be serialized in the context.

db
Database

The source database for the context.

options
MetadataSerializationOptions

The options for the serialization operation.

Returns

The newly created context.

Exceptions

  • The specified database is a null reference (Nothing in Visual Basic).
  • The specified options instance is a null reference (Nothing in Visual Basic).

The specified style is not a valid style.

Applies to

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.

public static Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext Create (Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle style, Microsoft.AnalysisServices.Tabular.Model model, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);
static member Create : Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationStyle * Microsoft.AnalysisServices.Tabular.Model * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationContext
Public Shared Function Create (style As MetadataSerializationStyle, model As Model, options As MetadataSerializationOptions) As MetadataSerializationContext

Parameters

style
MetadataSerializationStyle

The style into the specified model that will be serialized in the context.

model
Model

The source model for the context.

options
MetadataSerializationOptions

The options for the serialization operation.

Returns

The newly created context.

Exceptions

  • The specified model is a null reference (Nothing in Visual Basic).
  • The specified options instance is a null reference (Nothing in Visual Basic).

The specified style is not a valid style.

Applies to