Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MethodBase.IsAssembly Property

Gets a value indicating whether this method can be called by other classes in the same assembly.

[Visual Basic]
Public ReadOnly Property IsAssembly As Boolean
[C#]
public bool IsAssembly {get;}
[C++]
public: __property bool get_IsAssembly();
[JScript]
public function get IsAssembly() : Boolean;

Property Value

true if this method can be called by other classes in the same assembly; otherwise, false.

Remarks

If set, this method can be called by other classes in the same assembly.

To get the MethodBase, first get the type. From the type, get the method. From the method, get the MethodBase. If the MethodBase or constructor is other than public, it is protected and cannot be readily accessed. To access a non-public method, set the BindingFlags mask to NonPublic in GetMethod.

Example

The following example determines whether a specified method can be called by other classes in the same assembly, and displays the result.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

MethodBase Class | MethodBase Members | System.Reflection Namespace | FieldAttributes | Boolean | BindingFlags

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft