# MTConditionMetaData

This object describes a condition column in a RuleSet (see MTRuleSet).

To view an object model diagram that includes MTConditionMetaData, click here.

## Program ID

Metratech.MTConditionMetaData.1

## Methods

None.

## Properties

Properties | Returns all (core and extended) properties of this object as a collection of MTProperty objects.
EnumSpace | If the DataType is enum, specifies the MetraTech enum space.
EnumType | If the DataType is enum, specifies the MetraTech enum type.
Filterable | If this boolean property is true, this column can be filtered.
Required | If this boolean property is true, value must be specified.
DisplayName | The localized name, displayed to user.
ColumnName | The column name in the database table.
PropertyName | The name of property in the pipeline session.
DataType | The MSIX data type. Types must be a value in the PropValType enum type.
Operator | Specifies the operation (such as greater than, less than, and so on) to use on all rows in the column.
OperatorPerRule | If this boolean property is true, each rule has an individual operator. If false, the property 'Operator' specifies the operator to be applied to all rules.
Length | This property further specifies the DataType for a string in terms of the maximum length in characters.
DefaultValue | The default value appearing in the condition field in the MCM GUI.
DisplayOperator | Specifies how to display the operator (NoDisplay, DisplayAtColumn, DisplatAtRow).

# Property Detail

## Properties

This property returns all (core and extended) properties of this object as a collection of MTProperty objects.

### Visual Basic Syntax

Property Properties As MTProperties

### C++ Syntax

HRESULT Properties([out, retval] IMTProperties **pVal);

## EnumSpace

If the DataType is enum, this property specifies the MetraTech enum space.

### Visual Basic Syntax

Property EnumSpace As String

### C++ Syntax

HRESULT EnumSpace([out, retval] BSTR *pVal);

HRESULT EnumSpace([in] BSTR newVal);

## EnumType

If the DataType is enum, this property specifies the MetraTech enum type.

### Visual Basic Syntax

Property EnumType As String

### C++ Syntax

HRESULT EnumType([out, retval] BSTR *pVal);

HRESULT EnumType([in] BSTR newVal);

## Filterable

If this boolean property is true, this column can be filtered.

### Visual Basic Syntax

Property Filterable As Boolean

### C++ Syntax

HRESULT Filterable([out, retval] VARIANT_BOOL *pVal);

HRESULT Filterable([in] VARIANT_BOOL newVal);

## Required

If this boolean property is true, value must be specified.

### Visual Basic Syntax

Property Required As Boolean

### C++ Syntax

HRESULT Required([out, retval] VARIANT_BOOL *pVal);

HRESULT Required([in] VARIANT_BOOL newVal);

## DisplayName

This property specifies the localized name, displayed to user.

### Visual Basic Syntax

Property DisplayName As String

### C++ Syntax

HRESULT DisplayName([out, retval] BSTR *pVal);

HRESULT DisplayName([in] BSTR newVal);

## ColumnName

This property specifies the column name in the database table.

### Visual Basic Syntax

Property ColumnName As String

### C++ Syntax

HRESULT ColumnName([out, retval] BSTR *pVal);

HRESULT ColumnName([in] BSTR newVal);

## PropertyName

This property specifies the name of property in the pipeline session.

### Visual Basic Syntax

Property PropertyName As String

### C++ Syntax

HRESULT PropertyName([out, retval] BSTR *pVal);

HRESULT PropertyName([in] BSTR newVal);

## DataType

This property specifies the MSIX data type. Types must be a value in the PropValType enum type.

### Visual Basic Syntax

Property DataType As PropValType

### C++ Syntax

HRESULT DataType([out, retval] PropValType *pVal);

HRESULT DataType([in] PropValType newVal);

## Operator

This property specifies the operation (such as greater than, less than, and so on) to use on all rows in the column.

### Visual Basic Syntax

Property Operator As MTOperatorType

### C++ Syntax

HRESULT Operator([out, retval] MTOperatorType *pVal);

HRESULT Operator([in] MTOperatorType newVal);

## OperatorPerRule

If this boolean property is true, each rule has an individual operator.

If false, the property 'Operator' specifies the operator to be applied to all rules

### Visual Basic Syntax

Property OperatorPerRule As Boolean

### C++ Syntax

HRESULT OperatorPerRule([out, retval] VARIANT_BOOL *pVal);

HRESULT OperatorPerRule([in] VARIANT_BOOL newVal);

## DisplayOperator

This property specifies how to display the operator (NoDisplay, DisplayAtColumn, DisplatAtRow).

### Visual Basic Syntax

Property DisplayOperator As Boolean

### C++ Syntax

HRESULT DisplayOperator([out, retval] VARIANT_BOOL *pVal);

HRESULT DisplayOperator([in] VARIANT_BOOL newVal);

## Length

This property further specifies the DataType for a string in terms of the maximum length in characters.

### Visual Basic Syntax

Property Length As Long

### C++ Syntax

HRESULT Length([out, retval] long *pVal);

HRESULT Length([in] long newVal);

## DefaultValue

This property is the default value appearing in the condition field in the MCM GUI.

### Visual Basic Syntax

Property DefaultValue As Variant

### C++ Syntax

HRESULT DefaultValue([out, retval] VARIANT *pVal);

HRESULT DefaultValue([in] VARIANT newVal);