Type Property

The Type property returns an object type.

Syntax

object .Type

Applies To

Application Object

Association Object

CalculationDefinition Object

Category Object

CategorySet Object

ChildCube Object

Column Object

CrossTabDataSource Object

Cube Object

CubeGroup Object

CurrencyRate Object

CurrencyRecord Object

CurrencyTable Object

CustomView Object

DataSource Object

DateDimension Object

DateDrillDown Object

DateLevel Object

DateWizard Object

DbDataSource Object

Dimension Object

DrillDown Object

DrillThroughTarget Object

FlatFileDataSource Object

IqdDataSource Object

Level Object

Measure Object

Model Object

Name Object

Package Object

Prompt Object

Report Object

SecurityObject Object

Signon Object

SpecialCategory Object

SuspendedModel Object

View Object

Discussion

Use this property to determine the type of object. This return value is useful when you retrieve an object from a collection that can contain more than one type of object. For example, an object returned from a Dimensions collection can be a Dimension object or a DateDimension object.

The value of the Type property for each object in Transformer corresponds to a constant of xtrObjectType, except for the DataSource object. In this case, the value of the Type property is set by the object in the DataSources collection that the DataSource object is currently representing.

A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.

Type

Constant - xtrObjectType

Access

Read

Examples

new_namespace 
= model.Namespaces.Add()securityObject
= new_namespace.SecurityObjects.Add()securityObject.Type 
= xtrSecurityType.trSecurityType_Role