Share via


TmdlSerializer.SerializeModelToCompressedFile Method

Definition

Overloads

SerializeModelToCompressedFile(Model, String)

Serializes a full in-memory Model to a set of TMDL documents in a comressed archive file, using the default serialization strategy.

SerializeModelToCompressedFile(Model, String, MetadataSerializationOptions)

Serializes a full in-memory Model to a set of TMDL documents in a comressed archive file, using the specified options and the default serialization strategy.

SerializeModelToCompressedFile(Model, String)

Serializes a full in-memory Model to a set of TMDL documents in a comressed archive file, using the default serialization strategy.

public static void SerializeModelToCompressedFile (Microsoft.AnalysisServices.Tabular.Model model, string path);
static member SerializeModelToCompressedFile : Microsoft.AnalysisServices.Tabular.Model * string -> unit
Public Shared Sub SerializeModelToCompressedFile (model As Model, path As String)

Parameters

model
Model

The model to serialize.

path
String

The path where the compressed file that contains the model documents will be saved.

Exceptions

  • The specified model is a null reference (Nothing in Visual Basic).
  • The specified path is a null reference (Nothing in Visual Basic) or empty.

Applies to

SerializeModelToCompressedFile(Model, String, MetadataSerializationOptions)

Serializes a full in-memory Model to a set of TMDL documents in a comressed archive file, using the specified options and the default serialization strategy.

public static void SerializeModelToCompressedFile (Microsoft.AnalysisServices.Tabular.Model model, string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);
static member SerializeModelToCompressedFile : Microsoft.AnalysisServices.Tabular.Model * string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions -> unit
Public Shared Sub SerializeModelToCompressedFile (model As Model, path As String, options As MetadataSerializationOptions)

Parameters

model
Model

The model to serialize.

path
String

The path where the compressed file that contains the model documents will be saved.

options
MetadataSerializationOptions

The options for the serialization action.

Exceptions

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

The provided options include invalid settings.

Applies to