UnregisterObject

Description

Unregisters the PowerBuilder object.

Applies to

DotNetObject

Syntax

Integer UnregisterObject(readonly string objectname)

Argument

Description

objectname

The name of the object that has been registered. The name is case-sensitive.


Return value

Integer.

Returns values as follows. If any argument's value is null, the method returns null.

1 -- Success

-1 -- Unknown error.

-5 -- DotNetObject is not instantiated.

-52 -- The objectname is not registered.

Examples

This statement unregisters the object w_dotnettest and returns an error if unregistration failed.

ll_return = lcs_object.UnRegisterObject ("w_dotnettest", w_dotnettest)
if ll_return <> 1 then
   MessageBox("Error", "UnRegisterObject w_dotnettest failed") 
end if

See also

GetContextService

PostEvent

TriggerEvent

RegisterObject