MemberInfo.Module Property

 

Gets the module in which the type that declares the member represented by the current MemberInfo is defined.

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

abstract Module : Module with get
override Module : Module with get

Property Value

Type: System.Reflection.Module

The Module in which the type that declares the member represented by the current MemberInfo is defined.

Exception Condition
NotImplementedException

This method is not implemented.

This property is provided as a convenience. It is equivalent to using the DeclaringType property to get the type in which the method is declared, and then calling the Module property of the resulting Type object.

The following code example declares a class that inherits Object and overrides Object.ToString. The example obtains MethodInfo objects for the class's ToString method and for the inherited GetHashCode method, and displays the names of the modules in which the two methods are declared.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: