Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.Reflection.MethodAttributes
Assembly: System.Runtime
Specifies flags for method attributes. These flags are defined in the corhdr.h file.
Values
PrivateScope
Indicates that the member cannot be referenced.
ReuseSlot
Indicates that the method will reuse an existing slot in the vtable. This is the default behavior.
Private
Indicates that the method is accessible only to the current class.
FamANDAssem
Indicates that the method is accessible to members of this type and its derived types that are in this assembly only.
Assembly
Indicates that the method is accessible to any class of this assembly.
Family
Indicates that the method is accessible only to members of this class and its derived classes.
FamORAssem
Indicates that the method is accessible to derived classes anywhere, as well as to any class in the assembly.
Public
Indicates that the method is accessible to any object for which this object is in scope.
MemberAccessMask
Retrieves accessibility information.
UnmanagedExport
Indicates that the managed method is exported by thunk to unmanaged code.
Static
Indicates that the method is defined on the type; otherwise, it is defined per instance.
Final
Indicates that the method cannot be overridden.
Virtual
Indicates that the method is virtual.
HideBySig
Indicates that the method hides by name and signature; otherwise, by name only.
NewSlot
Indicates that the method always gets a new slot in the vtable.
VtableLayoutMask
Retrieves vtable attributes.
CheckAccessOnOverride
Indicates that the method can only be overridden when it is also accessible.
Abstract
Indicates that the class does not provide an implementation of this method.
SpecialName
Indicates that the method is special. The name describes how this method is special.
RTSpecialName
Indicates that the common language runtime checks the name encoding.
PinvokeImpl
Indicates that the method implementation is forwarded through PInvoke (Platform Invocation Services).
HasSecurity
Indicates that the method has security associated with it. Reserved flag for runtime use only.
RequireSecObject
Indicates that the method calls another method containing security code. Reserved flag for runtime use only.
ReservedMask
Indicates a reserved flag for runtime use only.