The UserContext type exposes the following members.

ToggleMethods

Type NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGet
This method returns the UserContext object associated with the current thread. When no user context has been set, a default one exists containing the current locale for the current thread.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetLocale
Returns the locale identifier for this user context. If no locale has been set, this method returns the locale defined for the current thread. For more information, see the LocaleName property.
Public methodStatic memberGetToken
Returns the SecurityToken object that is currently in effect.

If there is a Token associated with the current thread then this method will return it. If not, then it will return the Token associated with the current process. If there are no associated Tokens, then this method returns Null.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetLocale
Sets the locale identifier for this user context. For more information, see the LocaleName property.
Public methodStatic memberSetProcessSecurityToken
Associates the SecurityToken with all threads in this process (global). This method is required for setting the security token that will be used for all connections in the current process.
Public methodStatic memberSetThreadSecurityToken
Associates the SecurityToken with the current thread. This method is required for setting the security token that will be used for all connections in the current thread.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

ToggleSee Also