Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Static Get 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 method GetHashCode 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 method GetLocale 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 method Static GetToken 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 method GetType Gets the Type of the current instance. (inherited from Object)
Public method SetLocale Sets the locale identifier for this user context. For more information, see the LocaleName property.
Public method Static SetProcessSecurityToken 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 method Static SetThreadSecurityToken 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 method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also