RegisterServer (Dundas Upload Control 2.0)

Dundas

RegisterServer (Dundas Upload Control 2.0)

Overview | Properties | Methods

Use this method to register/unregister a (COM) component at the server.

Syntax

UploadObject.RegisterServer(Path As String[, Unregister As Boolean = False])

The RegisterServer method syntax has the following part(s):

Part

Description

Path

Pathname of the component to be registered. Use either a relative or absolute pathname, depending on the setting of the UseVirtualDir property.

Unregister

Set this boolean to FALSE to register the component (the default). Set it to TRUE to unregister the component.

 

Remarks

This method will raise an exception if the specified file does not exist. To make sure that the file in question exists you can use the FileExists method before calling RegisterServer.

If UseVirtualDir is set to TRUE then the specified path needs to be relative. It should start with a forward slash and be followed by a valid alias, and any sub-folders need to be separated with forward slashes. If you specify a physical pathname when UseVirtualDir is TRUE an exception will be thrown.

See Also: FileExists