Share via


Measure Class

Definition

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

[System.Runtime.InteropServices.Guid("0BFFF8F1-34F2-4408-8218-29E5D6E66014")]
public sealed class Measure : Microsoft.AnalysisServices.NamedComponent, ICloneable
[<System.Runtime.InteropServices.Guid("0BFFF8F1-34F2-4408-8218-29E5D6E66014")>]
type Measure = class
    inherit NamedComponent
    interface ICloneable
Public NotInheritable Class Measure
Inherits NamedComponent
Implements ICloneable
Inheritance
Attributes
Implements

Constructors

Measure()

Initializes a new instance of Measure using the default values.

Measure(String, String)

Initializes a new instance of Measure using the specified name and identifier.

Measure(String)

Initializes a new instance of Measure using the specified name.

Fields

MaxIDLength

Specifies the maximum length of the identifier.

(Inherited from NamedComponent)
MaxNameLength

Specifies the maximum length of the name.

(Inherited from NamedComponent)

Properties

AggregateFunction

Gets or sets the aggregate function applied to current measure.

Annotations

Gets a collection within which you can store custom data.

(Inherited from ModelComponent)
BackColor

Gets or sets the BackColor for display of a Measure.

DataType

Gets or sets the current measure data type.

Description

Gets or sets the description of the component.

(Inherited from NamedComponent)
DisplayFolder

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

FontFlags

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

FontName

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

FontSize

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

ForeColor

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

FormatString

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

FriendlyName

Gets a user-friendly name for the component.

(Inherited from NamedComponent)
ID

Gets or sets the identifier of the component.

(Inherited from NamedComponent)
IsLinked

Gets an indicatation whether the current measure is linked.

KeyForCollection

Gets the key used in collections.

(Inherited from NamedComponent)
MeasureExpression

Gets or sets the measure expression.

Name

Gets or sets the name of the component.

(Inherited from NamedComponent)
OwningCollection

Gets or sets the collection that contains the ModelComponent.

(Inherited from ModelComponent)
Parent

Gets the parent MeasureGroup object of the Measure object.

ParentCube

Gets the parent Cube object of the Measure object.

ParentDatabase

Gets the parent Database object of the Measure object.

ParentServer

Gets the parent Server object of the Measure object.

Site

Gets or sets the site associated with the component.

(Inherited from NamedComponent)
SiteID

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

(Inherited from NamedComponent)
Source

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

Translations

Gets the collection of translations for the current measure.

Visible

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

Methods

AddToContainer(IContainer)

Adds the ModelComponent object to the specified container.

(Inherited from ModelComponent)
AfterInsert(Int32)

Displays a ModelComponent object after added to the specified index.

(Inherited from ModelComponent)
AfterMove(Int32, Int32)

Displays a ModelComponent object after moving to the specified index.

(Inherited from ModelComponent)
AfterRemove(ModelComponentCollection)

Displays a ModelComponentCollection after a ModelComponent object is removed.

(Inherited from ModelComponent)
BeforeRemove(Boolean)

Removes the ModelComponent object before the cleanup.

(Inherited from ModelComponent)
Clone()

Returns a clone of the object.

CopyTo(Measure)

Copies the content of this object to another object (the destination).

CopyTo(ModelComponent)

Copies a ModelComponent object to the specified object.

(Inherited from ModelComponent)
CopyTo(NamedComponent)

Copies a NamedComponent object to the specified object.

(Inherited from NamedComponent)
RemoveFromContainer(IContainer)

Removes the ModelComponent object from the specified container.

(Inherited from ModelComponent)
Reset()

Resets the component to its initial state.

(Inherited from NamedComponent)
Submit()

Submits a ModelComponent object.

(Inherited from ModelComponent)
Submit(Boolean)

Submits a ModelComponent object.

(Inherited from ModelComponent)
ToString()

Returns a string representing the named-component.

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

Determines whether the Measure is valid.

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)

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

(Inherited from ModelComponent)

Explicit Interface Implementations

ICloneable.Clone()
IFormattable.ToString(String, IFormatProvider) (Inherited from NamedComponent)
IHostableComponent.Host (Inherited from ModelComponent)
IModelComponent.FriendlyPath (Inherited from ModelComponent)
IModelComponent.OwningCollection (Inherited from ModelComponent)

Applies to