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

IsImpersonating – PB Docs 2022 – PowerBuilder Library

IsImpersonating – PB Docs 2022

IsImpersonating

PowerScript function

Description

Queries whether a COM object running on COM+ is impersonating the
client.

Applies to

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service instance

Return value

Boolean.

Returns true if the component is impersonating the client and false
if it is not.

Usage

COM objects running on COM+ can use the ImpersonateClient function
to run in the client’s security context so that the server process has
access to the same resources as the client. Use IsImpersonating to
determine whether the ImpersonateClient function has been called without a
matching call to RevertToSelf.

Examples

The following example creates an instance of the TransactionServer
service and checks whether the COM object is currently running on the
client’s security context. If it is not, it impersonates the client,
performs some processing using the client’s security context, then reverts
to the object’s security context:

See also

ImpersonateClient

IsCallerInRole

IsSecurityEnabled

RevertToSelf


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