Type Property
The Type property returns an object type.
Syntax
object .Type
Applies To
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