Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServerUtils Methods

The ServerUtils type exposes the following members.

  NameDescription
Public method Static member CreateStackTraceId Returns an integer that identifies the specified exception.
Public method Static member GetAbsoluteLocation Gets the full URL to an object's location.
Public method Static member GetCurrentUserDisplayName Returns the display name of the current user who is accessing the site.
Public method Static member GetCurrentUserName Returns a name that uniquely identifies the current user who is accessing the site.
Public method Static member GetCurrentUserWindowsIdentityName Returns the unique user name of the current user, if the account is an authenticated Windows identity or claims-based identity.
Public method Static member HandleException(Exception) Logs an exception in the event log.
Public method Static member HandleException(String, Exception, ErrorCode) Logs an exception in the event log.
Public method Static member IsAccessDeniedException Determines whether an exception is a result of insufficient permissions.
Public method Static member IsAnonymousUser Determines whether the current user is using the site as the anonymous user.
Public method Static member MakeSecureString Converts the specified string into a SecureString object.
Public method Static member SetThreadCultures Sets the locale of the current thread to the locale of the current site.
Public method Static member ShouldLog Determines whether to log access exceptions.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.