Export (0) Print
Expand All

Assembly.GetExecutingAssembly Method

Gets the assembly that contains the code that is currently executing.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public static Assembly GetExecutingAssembly()

Return Value

Type: System.Reflection.Assembly
A Assembly representing the assembly that contains the code that is currently executing.

To get the assembly that contains the method that called the currently executing code, use GetCallingAssembly.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft