Model Model Model Class

Definition

A Tabular model created at compatibility level 1200 or above.

public sealed class Model : Microsoft.AnalysisServices.Tabular.NamedMetadataObject
type Model = class
    inherit NamedMetadataObject
Public NotInheritable Class Model
Inherits NamedMetadataObject
Inheritance

Constructors

Model() Model() Model()

Constructor.

Properties

Annotations Annotations Annotations

Gets the collection object of all annotations in the current Model.

Collation Collation Collation

The collation sequence. Analysis Services uses Windows collations.

Culture Culture Culture

The name of the Culture used for formatting. Once it's used by a child object, this value can't be changed.

Cultures Cultures Cultures

Gets the collection object of all cultures in the current Model.

DataAccessOptions DataAccessOptions DataAccessOptions

Options for the M data engine.

Database Database Database

Gets the parent Database of the Model object.

DataSources DataSources DataSources

Gets the collection object of all datasources in the current Model.

DefaultDataView DefaultDataView DefaultDataView

Used by partitions in the model to determine the type of query that retrieves data. A Full dataview retrieves an unfiltered rowset, used for in-memory models and deployed DirectQuery models. A Sample data view is a subset of data used during DirectQuery model design.

DefaultMeasure DefaultMeasure DefaultMeasure

A reference to a default measure.

DefaultMode DefaultMode DefaultMode

The default method for making data available in the partition.

DefaultPowerBIDataSourceVersion DefaultPowerBIDataSourceVersion DefaultPowerBIDataSourceVersion

Used by PBIX data source format conversion.

Description Description Description

The description of the model, visible to developers at design time and to administrators in management tools, such as SQL Server Management Studio.

Expressions Expressions Expressions

Gets the collection object of all expressions in the current Model.

ExtendedProperties ExtendedProperties ExtendedProperties

Gets the collection object of all extendedproperties in the current Model.

ForceUniqueNames ForceUniqueNames ForceUniqueNames

Determines whether measures can have the same names as any column in the model.

HasLocalChanges HasLocalChanges HasLocalChanges

Returns the status of local changes made to the model, which haven't been saved to the server.

If the model is not connected, this value is always False.

IsRemoved IsRemoved IsRemoved

A Boolean specifying whether this object was removed from an object tree.

(Inherited from MetadataObject)
Model Model Model

Gets the Tabular model that contains this object.

(Inherited from MetadataObject)
ModifiedTime ModifiedTime ModifiedTime

The time that the object was last modified.

Name Name Name

The name of the object, used in code, script, and queries.

ObjectType ObjectType ObjectType

Gets the type of the object.

Parent Parent Parent

Parent object, null for Model objects.

Perspectives Perspectives Perspectives

Gets the collection object of all perspectives in the current Model.

Relationships Relationships Relationships

Gets the collection object of all relationships in the current Model.

Roles Roles Roles

Gets the collection object of all roles in the current Model.

Server Server Server

Gets the name of a Server object, where the server is an Analysis Services Tabular instance.

StorageLocation StorageLocation StorageLocation

The location on disk to place the model.

StructureModifiedTime StructureModifiedTime StructureModifiedTime

The time that the structure of the object was last modified.

Tables Tables Tables

Gets the collection object of all tables in the current Model.

Methods

ApplyRefreshPolicies(DateTime, Boolean, Boolean, Int32) ApplyRefreshPolicies(DateTime, Boolean, Boolean, Int32) ApplyRefreshPolicies(DateTime, Boolean, Boolean, Int32)

Apply refresh policies with an effective date for all applicable tables to manage partitions

Clone() Clone() Clone()

Creates a new, full copy of a Model object.

CopyFrom(Model) CopyFrom(Model) CopyFrom(Model)

Deprecated. Use CopyTo method instead.

CopyTo(Model) CopyTo(Model) CopyTo(Model)

Copies a Model object to the specified object.

ExecuteXmla(String) ExecuteXmla(String) ExecuteXmla(String)

Executes an XMLA request and updates the model tree to match model's definition on the Server.

GetCompatLevelRequirementByMembers(String) GetCompatLevelRequirementByMembers(String) GetCompatLevelRequirementByMembers(String)

Default implementation of a compatibility-level requirement calculation.

(Inherited from MetadataObject)
Refresh(RefreshType) Refresh(RefreshType) Refresh(RefreshType)

Deprecated. Use RequestRefresh method instead.

Refresh(RefreshType, ICollection<OverrideCollection>) Refresh(RefreshType, ICollection<OverrideCollection>) Refresh(RefreshType, ICollection<OverrideCollection>)

Deprecated. Use RequestRefresh method instead.

Rename(String) Rename(String) Rename(String)

Deprecated. Use RequestRename method instead.

RequestRefresh(RefreshType) RequestRefresh(RefreshType) RequestRefresh(RefreshType)

Request refresh of this object.

RequestRefresh(RefreshType, ICollection<OverrideCollection>) RequestRefresh(RefreshType, ICollection<OverrideCollection>) RequestRefresh(RefreshType, ICollection<OverrideCollection>)

Request refresh of this object with overrides.

RequestRename(String) RequestRename(String) RequestRename(String)

Request rename of this object.

SaveChanges() SaveChanges() SaveChanges()

Saves the local changes made on the model tree to the version of the model residing in the database on the Server.

SaveChanges(SaveFlags) SaveChanges(SaveFlags) SaveChanges(SaveFlags)

Saves local modifications made on the model tree to the Server.

SaveChanges(SaveOptions) SaveChanges(SaveOptions) SaveChanges(SaveOptions)

Saves local modifications made on model tree to the Server.

Sync() Sync() Sync()

Synchronizes a local copy of the model tree to match the latest version stored on the Analysis Services instance, using the default options.

Sync(SyncOptions) Sync(SyncOptions) Sync(SyncOptions)

Synchronizes a local copy of the model tree to match the latest version stored on the Analysis Services instance, using the provided options.

UndoLocalChanges() UndoLocalChanges() UndoLocalChanges()

Reverts local changes made on the Model since the last time it was sync'ed with the Server.

Validate() Validate() Validate()

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

(Inherited from MetadataObject)

Applies to