Megosztás a következőn keresztül:


TmdlSerializer.SerializeObject Method

Definition

Overloads

SerializeObject(MetadataObject, Boolean)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Tabular metdata object to TMDL text content.

SerializeObject(MetadataObject, MetadataSerializationOptions, Boolean)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Tabular metdata object to TMDL text content using the specified options.

SerializeObject(MetadataObject, Boolean)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Tabular metdata object to TMDL text content.

public static string SerializeObject (Microsoft.AnalysisServices.Tabular.MetadataObject object, bool qualifyObject = true);
static member SerializeObject : Microsoft.AnalysisServices.Tabular.MetadataObject * bool -> string
Public Shared Function SerializeObject (object As MetadataObject, Optional qualifyObject As Boolean = true) As String

Parameters

object
MetadataObject

The metadata object to serialize

qualifyObject
Boolean

An indication if the content should include the qualifying path of the object in the metadata objects-graph; default is true.

Returns

A String with the TMDL text content.

Exceptions

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

The specified metadata object is a NamedMetadataObject without a name.

Applies to

SerializeObject(MetadataObject, MetadataSerializationOptions, Boolean)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Serializes an in-memory Tabular metdata object to TMDL text content using the specified options.

public static string SerializeObject (Microsoft.AnalysisServices.Tabular.MetadataObject object, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options, bool qualifyObject = true);
static member SerializeObject : Microsoft.AnalysisServices.Tabular.MetadataObject * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions * bool -> string
Public Shared Function SerializeObject (object As MetadataObject, options As MetadataSerializationOptions, Optional qualifyObject As Boolean = true) As String

Parameters

object
MetadataObject

The metadata object to serialize

options
MetadataSerializationOptions

The options for the serialization action.

qualifyObject
Boolean

An indication if the content should include the qualifying path of the object in the metadata objects-graph; default is true.

Returns

A String with the TMDL text content.

Exceptions

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

The specified metadata object is a NamedMetadataObject without a name.

The provided options include invalid settings.

Applies to