# MTEnumSpace

An object that holds information about an enum space (name + description) and a collection of MTEnumType objects.

## Program ID

Metratech.MTEnumSpace.1

## MTEnumSpace Methods

Add | Adds an enum type object to this enum space.
GetEnumTypes | Returns enum type object given the enum type name.
WriteSet | Internal Use Only

## MTEnumSpace Properties

Description | Gets/sets the description for this enum space.
Location | Gets/sets the location for this enum space.

## Example

An example will be available in future versions of this online help system.

# Method Detail

## Add

Adds an enum type object to this enum space.

### Visual Basic Syntax

Sub Add(enum_type As MTEnumType)

### C++ Syntax

[id(3), helpstring("method Add")] HRESULT Add(IMTEnumType* enum_type);

### Arguments

IMTEnumType* val

MTEnumType object

## GetEnumTypes

Returns enum type object given the enum type name.

### Visual Basic Syntax

Function GetEnumTypes() As MTEnumTypeCollection

### C++ Syntax

[id(1), helpstring("method GetEnumTypes")] HRESULT GetEnumTypes([out, retval] IMTEnumTypeCollection**);

### Arguments

BSTR name

Enum type name.

### Return Value

IMTEnumType** val

Enum type.

## WriteSet

Internal use only.

# Property Detail

## Description

Gets/sets the description for this enum space.

### Visual Basic Syntax

Property Description As String

### C++ Syntax

[propget, id(5), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal);

[propput, id(5), helpstring("property Description")] HRESULT Description([in] BSTR newVal);

### Return Value

BSTR* val

Enum space description.

## Location

Gets/sets the location for this enum space.

### Visual Basic Syntax

Property Location As String

### C++ Syntax

[propget, id(8), helpstring("property Location")] HRESULT Location([out, retval] BSTR *pVal);

[propput, id(8), helpstring("property Location")] HRESULT Location([in] BSTR newVal);

### Return Value

BSTR* val

File where this enum space is located.