CreateLink method

Creates a new link to a Web site, another eRoom, or an eRoom file or page. You can create a link to anything that has its own URL.

Syntax


C++
HRESULT CreateLink (
   BSTR Name,
   BSTR TargetURL,
   LONG CreateOptions,
   IERUItem** ppLink)
Scripting languages
Set Link = Object.CreateLink (
   Name as String,
   TargetURL as String,
   CreateOptions as Long)

Parameters


Name

The name you want to give the Link. The name must be unique in the container.

TargetURL

The Link's URL.

CreateOptions

One or more create options chosen from the enum ERUCreateOptions, logically OR'ed together. Valid create options for CreateLink are erCreateOptMakeNameUnique, erCreateOptOpenNewWindow and erCreateOptNone [optional, default = erCreateOptNone].

ppLink

Upon return, an IERUItem interface pointer to the newly-added Link.

Return value


C++

The return code.

Scripting languages

An IERUItem interface pointer to the newly-added link.

Remarks


A link's name can be no longer than 126 characters and its URL can be no longer than 255 characters.

Home

Interface

IERUContainer


See also

Links