Additional Topics > Medical Imaging in IDL > IDL DICOM Reference > IDLffDicomExCfg::SetApplicationEntity

# IDLffDicomExCfg::SetApplicationEntity

The IDLffDicomExCfg::SetApplicationEntity procedure method defines a new Application Entity or modifies the definition of an existing Application Entity.

Note: The Application Entity is not actually added or modified until the IDLffDicomExCfg::Commit method is called.

## Syntax

Obj->[IDLffDicomExCfg::]SetApplicationEntity, ApplicationEntityName, AET, Hostname, Port, ServiceListName, ServiceType

## Arguments

### ApplicationEntityName

A string containing the name of an Application Entity. If the specified Application Entity does not exist, it will be created. If the specified Application Entity already exists, it will be modified as specified by the other parameters.

ApplicationEntityName can have a maximum of 30 characters.

### AET

A string containing the title of the Application Entity. The title need not be unique.

AET can have a maximum of 15 characters.

### Hostname

A string containing a valid network computer name or a IP address. If the DICOM Network Service is running on the local machine, you can use the string `LocalHost`.

Hostname can have a maximum of 30 characters.

### Port

A number or string containing the TCP/IP port number at which the Application Entity listens.

Port can have a maximum of 5 characters.

### ServiceListName

A string containing a valid service list name. (See IDLffDicomExCfg::GetServiceLists for a list of valid strings.)

### ServiceType

A string containing a valid service type. (See IDLffDicomExCfg::GetServiceTypes for a list of valid strings.)

## Keywords

None

## Version History

6.3 | Introduced