ContextUtil Members

Obtains information about the COM+ object context. This class cannot be inherited.

The following tables list the members exposed by the ContextUtil type.

  Name Description
Public property Static ActivityId Gets a GUID representing the activity containing the component.
Public property Static ApplicationId Gets a GUID for the current application.
Public property Static ApplicationInstanceId Gets a GUID for the current application instance.
Public property Static ContextId Gets a GUID for the current context.
Public property Static DeactivateOnReturn Gets or sets the done bit in the COM+ context.
Public property Static IsInTransaction Gets a value that indicates whether the current context is transactional.
Public property Static IsSecurityEnabled Gets a value that indicates whether role-based security is active in the current context.
Public property Static MyTransactionVote Gets or sets the consistent bit in the COM+ context.
Public property Static PartitionId Gets a GUID for the current partition.
Public property Static SystemTransaction Gets the current transaction context.
Public property Static Transaction Gets an object describing the current COM+ DTC transaction.
Public property Static TransactionId Gets the GUID of the current COM+ DTC transaction.
Top

(see also Protected Methods )
  Name Description
Public method Static DisableCommit Sets both the consistent bit and the done bit to false in the COM+ context.
Public method Static EnableCommit Sets the consistent bit to true and the done bit to false in the COM+ context.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
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 Static GetNamedProperty Returns a named property from the COM+ context.
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static IsCallerInRole Determines whether the caller is in the specified role.
Public method Static IsDefaultContext Determines whether the serviced component is activated in the default context. Serviced components that do not have COM+ catalog information are activated in the default context.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Static SetAbort Sets the consistent bit to false and the done bit to true in the COM+ context.
Public method Static SetComplete Sets the consistent bit and the done bit to true in the COM+ context.
Public method Static SetNamedProperty Sets the named property for the COM+ context.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected 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.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show: