Offers methods to read information about the current executing code, like the component names in its call stack and its base execution folder in the local file system.

A component is a executable code container. For the .NET ecosystem, the conceptual component is represented as a .NET assembly in DLL or EXE format, or a .NET module.

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

Name Description
Public method Equals (Overloaded) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static GetBaseFolder Obtains the current executing component base execution folder in the local file system.
Public method Static GetCurrentComponentName Obtains the name of the component whose code is currently in execution.

That component occupies the first position from top to bottom in the call stack.
Public method Static GetFirstInvokingComponentName Obtains the name of the component whose code in the call stack originally produces the execution of the current component.

That component occupies the last position from top to bottom in the call stack.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method Static GetImmediateInvokingComponentName Obtains the name of the component whose code in the call stack immediately invokes the current executing component.

That component occupies the second position from top to bottom in the call stack.
Public method Static GetInvokingComponentNameInPosition Obtains the name of the component in a given position in the call stack.
Public method Static GetTotalInvocationPositions Obtains the total number of component positions in the current call stack.
Public method GetType (Overloaded) Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static ReferenceEquals Determines whether the specified Object instances are the same instance. (inherited from Object).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Top
Name Description
Public extension method FromNullable Converts object values to nullable relational data store values. (Defined by Object_ToNullable).
Public extension method GetAttribute Obtains the first attribute that decorates an object class. (Defined by Attribute_GetAttributes).
Public extension method GetAttribute<TAtribute> (Overloaded) Obtains the first attribute that decorates an object class. (Defined by Attribute_GetAttributes).
Public extension method GetAttributes Obtains the attributes that decorates a class. (Defined by Attribute_GetAttributes).
Public extension method GetAttributes<TAtribute> (Overloaded) Obtains the attributes that decorates a class. (Defined by Attribute_GetAttributes).
Public extension method ToNullable<T> Converts nullable relational data store values to Nullable<T>. (Defined by Object_ToNullable).
Top