ImpersonationTerminate (Dundas Upload Control 2.0)

Dundas

ImpersonationTerminate (Dundas Upload Control 2.0)

Overview | Properties | Methods

Call this method to revert back to using the default user account.

Syntax

UploadObject.ImpersonationTerminate()

Remarks

An exception is thrown if the operation fails. You can trap for success/failure by examining VBScript's Err object immediately after calling this method (the Number property of the Err object will be a non-zero value if it failed). MAKE SURE that you have enabled inline error trapping by using an On Error Resume Next statement at the beginning of the ASP page.

If you need to perform an operation for which the default user account does not have permission then call the ImpersonateUser method to utilize an account which has wider permissions than the default account (which is usually the IUSR account). Once you no longer need these wider permissions call the ImpersonationTerminate method to revert back to using the default account.

See Also: ImpersonateUser