Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

RevertToSelf – PB Docs 2021 – PowerBuilder Library

RevertToSelf – PB Docs 2021

RevertToSelf

PowerScript function

Description

Restores the security attributes for a COM object that is running on
COM+ and impersonating the client.

Applies to

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service instance

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Usage

COM objects running on COM+ can use the ImpersonateClient function
to run in the client’s security context so that the object has access to
the same resources as the client. Use RevertToSelf to restore the object’s
security context.

Examples

The following example creates an instance of the TransactionServer
service and checks whether the COM object is currently running in the
client’s security context. If it is, it reverts to the object’s security
context:

See also

ImpersonateClient

IsCallerInRole

IsImpersonating

IsSecurityEnabled


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x