CreateRoutingTarget method

Creates a Routing Target.

Syntax


C++
HRESULT CreateRoutingTarget(
   LONG Index,
   BSTR Name,
   IERUItem* Item,
   IERURoutingTarget** ppRoutingTarget)
Scripting languages
Set RoutingTarget = Object.CreateRoutingTarget(
   Index as Long,
   Name as String,
   Item as IERUItem)

Parameters


Index

The position of the new routing target. This affects the ordering of the routing targets in the UI. The index starts from 1.

Name

The name of the new Routing Target.

pItem

The Folder Page the routing target will route items to. The target must be a Folder Page object; attempting to specify a different type of object as the target will return the error EROOM_E_INVALIDTYPE. The item could only be in the same room as the routing source.

ppRoutingTarget

Upon return, this value will contain an IERURoutingTarget interface pointer to the newly-created Routing Target.

Return value


C++

The return code.

Scripting languages

An IERURoutingTarget interface pointer to the newly-created Routing Target.

Remarks


Note: if the index is less than zero, the new Routing Target is appended to the end of the routing list.

Home

Interface

IERURoutingSource


See also

IERURoutingTarget