Measure Measure Measure Class

Definition

Defines a fact attribute for which an aggregation is obtained. This class cannot be inherited.

public ref class Measure sealed : Microsoft::AnalysisServices::NamedComponent, ICloneable
[System.ComponentModel.Designer("Microsoft.AnalysisServices.Design.MeasureDesigner, Microsoft.AnalysisServices.Design, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("0BFFF8F1-34F2-4408-8218-29E5D6E66014")]
public sealed class Measure : Microsoft.AnalysisServices.NamedComponent, ICloneable
Public NotInheritable Class Measure
Inherits NamedComponent
Implements ICloneable
Inheritance
Attributes
Implements

Constructors

Measure() Measure() Measure()

Initializes a new instance of Measure using the default values.

Measure(String) Measure(String) Measure(String)

Initializes a new instance of Measure using a name.

Measure(String, String) Measure(String, String) Measure(String, String)

Initializes a new instance of Measure using a name and an identifier.

Properties

AggregateFunction AggregateFunction AggregateFunction

Gets or sets the aggregate function applied to current measure.

Annotations Annotations Annotations

Gets a collection within which you can store custom data.

(Inherited from ModelComponent)
BackColor BackColor BackColor

Gets or sets the BackColor for display of a Measure.

DataType DataType DataType

Gets or sets the current measure data type.

Description Description Description

Gets or sets the description of the component.

(Inherited from NamedComponent)
DisplayFolder DisplayFolder DisplayFolder

Gets or sets the DisplayFolder information of the Measure, for use by clients.

FontFlags FontFlags FontFlags

Gets or sets the FontFlags information of the Measure, for use by clients.

FontName FontName FontName

Gets or sets the FontName information of the Measure, for use by clients.

FontSize FontSize FontSize

Gets or sets the FontSize information of the Measure, for use by clients.

ForeColor ForeColor ForeColor

Gets or sets the ForeColor information of the Measure, for use by clients.

FormatString FormatString FormatString

Gets or sets the FormatString information of the Measure, for use by clients.

FriendlyName FriendlyName FriendlyName

Returns a user-friendly name.

(Inherited from NamedComponent)
ID ID ID

Gets or sets the identifier of the component.

(Inherited from NamedComponent)
IHostableComponent.Host IHostableComponent.Host IHostableComponent.Host

Gets or sets the IServiceProvider that is the host of the ModelComponent.

(Inherited from ModelComponent)
IModelComponent.FriendlyPath IModelComponent.FriendlyPath IModelComponent.FriendlyPath

Gets a friendly path for the ModelComponent.

(Inherited from ModelComponent)
IModelComponent.OwningCollection IModelComponent.OwningCollection IModelComponent.OwningCollection

Gets or sets the collection that owns the current object.

(Inherited from ModelComponent)
IsLinked IsLinked IsLinked

Gets or sets a value that indicates whether the current measure is linked.

KeyForCollection KeyForCollection KeyForCollection

Returns the key used in collections.

(Inherited from NamedComponent)
MeasureExpression MeasureExpression MeasureExpression

Gets or sets the measure expression.

Name Name Name

Gets or sets the name of the component.

(Inherited from NamedComponent)
OwningCollection OwningCollection OwningCollection

Gets or sets the collection that contains the ModelComponent.

(Inherited from ModelComponent)
Parent Parent Parent

Gets the MeasureGroup that is the parent of the Measure.

ParentCube ParentCube ParentCube

Gets the Cube object that is the parent of the Measure object.

ParentDatabase ParentDatabase ParentDatabase

Gets the Database object that is the parent of the Measure.

ParentServer ParentServer ParentServer

Gets the Server object that is the parent of the Measure.

Site Site Site

Gets or sets the site of the component.

(Inherited from NamedComponent)
SiteID SiteID SiteID

Gets or sets the identifier for the site associated with the component.

(Inherited from NamedComponent)
Source Source Source

Gets or sets the data item source for the current measure.

Translations Translations Translations

Gets the TranslationCollection object for the current measure.

Visible Visible Visible

Gets or sets whether the Measure should be visible to the client.

Methods

AddToContainer(IContainer) AddToContainer(IContainer) AddToContainer(IContainer)

Adds a ModelComponent object to the specified container.

(Inherited from ModelComponent)
AfterInsert(Int32) AfterInsert(Int32) AfterInsert(Int32)

Displays a ModelComponent object after added to the specified index.

(Inherited from ModelComponent)
AfterMove(Int32, Int32) AfterMove(Int32, Int32) AfterMove(Int32, Int32)

Displays a ModelComponent object after moving to the specified index.

(Inherited from ModelComponent)
AfterRemove(ModelComponentCollection) AfterRemove(ModelComponentCollection) AfterRemove(ModelComponentCollection)

Displays a ModelComponentCollection after a ModelComponent object is removed.

(Inherited from ModelComponent)
BeforeRemove(Boolean) BeforeRemove(Boolean) BeforeRemove(Boolean)

Removes the ModelComponent object before the cleanup.

(Inherited from ModelComponent)
Clone() Clone() Clone()

Creates a new full copy of an object.

CopyTo(Measure) CopyTo(Measure) CopyTo(Measure)

Copies a Measure to the specified object.

CopyTo(ModelComponent) CopyTo(ModelComponent) CopyTo(ModelComponent)

Copies a ModelComponent object to the specified object.

(Inherited from ModelComponent)
CopyTo(NamedComponent) CopyTo(NamedComponent) CopyTo(NamedComponent)

Copies a NamedComponent object to the specified object.

(Inherited from NamedComponent)
RemoveFromContainer(IContainer) RemoveFromContainer(IContainer) RemoveFromContainer(IContainer)

Removes a ModelComponent object from the specified container.

(Inherited from ModelComponent)
Reset() Reset() Reset()

Resets the component to its initial state.

(Inherited from NamedComponent)
Submit() Submit() Submit()

Submits a ModelComponent object.

(Inherited from ModelComponent)
Submit(Boolean) Submit(Boolean) Submit(Boolean)

Submits a ModelComponent object.

(Inherited from ModelComponent)
ToString() ToString() ToString()

Returns a string containing the name of the component.

(Inherited from NamedComponent)
Validate(ValidationErrorCollection) Validate(ValidationErrorCollection) Validate(ValidationErrorCollection)

Validates the element to which it is appended; returns any errors encountered in a collection.

(Inherited from ModelComponent)
Validate(ValidationErrorCollection, Boolean) Validate(ValidationErrorCollection, Boolean) Validate(ValidationErrorCollection, Boolean)

Validates the element to which it is appended; returns any errors encountered in a collection. Also contains a parameter to enable return of detailed errors.

(Inherited from ModelComponent)
Validate(ValidationErrorCollection, Boolean, ServerEdition) Validate(ValidationErrorCollection, Boolean, ServerEdition) Validate(ValidationErrorCollection, Boolean, ServerEdition)

Determines whether the Measure is valid.

Explicit Interface Implementations

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

Creates a new copy of this object instance.

IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.

(Inherited from NamedComponent)

Fields

MaxIDLength MaxIDLength MaxIDLength

Specifies the maximum length of the identifier.

(Inherited from NamedComponent)
MaxNameLength MaxNameLength MaxNameLength

Specifies the maximum length of the name.

(Inherited from NamedComponent)

Applies to