The UserContext type exposes the following members.
Methods
Type | Name | Description |
---|---|---|
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | 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.) |
![]() ![]() | 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.
|
![]() | 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.) |
![]() | 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.
|
![]() ![]() | 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. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetLocale |
Sets the locale identifier for this user context. For more information,
see the LocaleName property.
|
![]() ![]() | 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.
|
![]() ![]() | 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.
|
![]() | ToString | Returns a String that represents the current Object. (Inherited from Object.) |