ContextUtil Class

 

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

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

System.Object
  System.EnterpriseServices.ContextUtil

[<Sealed>]
type ContextUtil = class end

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticActivityId

Gets a GUID representing the activity containing the component.

System_CAPS_pubpropertySystem_CAPS_staticApplicationId

Gets a GUID for the current application.

System_CAPS_pubpropertySystem_CAPS_staticApplicationInstanceId

Gets a GUID for the current application instance.

System_CAPS_pubpropertySystem_CAPS_staticContextId

Gets a GUID for the current context.

System_CAPS_pubpropertySystem_CAPS_staticDeactivateOnReturn

Gets or sets the done bit in the COM+ context.

System_CAPS_pubpropertySystem_CAPS_staticIsInTransaction

Gets a value that indicates whether the current context is transactional.

System_CAPS_pubpropertySystem_CAPS_staticIsSecurityEnabled

Gets a value that indicates whether role-based security is active in the current context.

System_CAPS_pubpropertySystem_CAPS_staticMyTransactionVote

Gets or sets the consistent bit in the COM+ context.

System_CAPS_pubpropertySystem_CAPS_staticPartitionId

Gets a GUID for the current partition.

System_CAPS_pubpropertySystem_CAPS_staticSystemTransaction

Gets the current transaction context.

System_CAPS_pubpropertySystem_CAPS_staticTransaction

Gets an object describing the current COM+ DTC transaction.

System_CAPS_pubpropertySystem_CAPS_staticTransactionId

Gets the GUID of the current COM+ DTC transaction.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDisableCommit()

Sets both the consistent bit and the done bit to false in the COM+ context.

System_CAPS_pubmethodSystem_CAPS_staticEnableCommit()

Sets the consistent bit to true and the done bit to false in the COM+ context.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetNamedProperty(String)

Returns a named property from the COM+ context.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticIsCallerInRole(String)

Determines whether the caller is in the specified role.

System_CAPS_pubmethodSystem_CAPS_staticIsDefaultContext()

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.

System_CAPS_pubmethodSystem_CAPS_staticSetAbort()

Sets the consistent bit to false and the done bit to true in the COM+ context.

System_CAPS_pubmethodSystem_CAPS_staticSetComplete()

Sets the consistent bit and the done bit to true in the COM+ context.

System_CAPS_pubmethodSystem_CAPS_staticSetNamedProperty(String, Object)

Sets the named property for the COM+ context.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

ContextUtil is the preferred class to use for obtaining COM+ context information. Because the members of this class are all static (shared in Visual Basic), it is not necessary to instantiate it before using them.

The following code example demonstrates how to use ContextUtil to create a transactional ServicedComponent.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: