System.Reflection.MethodAttributes Enum

public enum MethodAttributes

Base Types

Object
  ValueType
    Enum
      MethodAttributes

Assembly

mscorlib

Library

Reflection

Summary

Specifies flags for method attributes.

Description

This enumeration is used by the System.Reflection.MethodBase.Attributes property.

See Also

System.Reflection Namespace

Members

MethodAttributes Fields

MethodAttributes.Abstract Field
MethodAttributes.Assembly Field
MethodAttributes.FamANDAssem Field
MethodAttributes.FamORAssem Field
MethodAttributes.Family Field
MethodAttributes.Final Field
MethodAttributes.HideBySig Field
MethodAttributes.MemberAccessMask Field
MethodAttributes.NewSlot Field
MethodAttributes.PinvokeImpl Field
MethodAttributes.Private Field
MethodAttributes.PrivateScope Field
MethodAttributes.Public Field
MethodAttributes.ReuseSlot Field
MethodAttributes.SpecialName Field
MethodAttributes.Static Field
MethodAttributes.Virtual Field
MethodAttributes.VtableLayoutMask Field
MethodAttributes.value__ Field


MethodAttributes.Abstract Field

Abstract = 1024;

Summary

Specifies that the type that declares the method does not provide an implementation.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Assembly Field

Assembly = 3;

Summary

Specifies that the method is accessible throughout the assembly.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.FamANDAssem Field

FamANDAssem = 2;

Summary

Specifies that the method is accessible only to members of the type that defines the method and its subclasses in the assembly that contains the defining type.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.FamORAssem Field

FamORAssem = 5;

Summary

Specifies that the method is accessible to members of the type that defines the method and its subclasses, and throughout the assembly.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Family Field

Family = 4;

Summary

Specifies that the method is accessible only to the members of the type that defines it and its subclasses.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Final Field

Final = 32;

Summary

Specifies that the method cannot be overridden.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.HideBySig Field

HideBySig = 128;

Summary

Specifies that the method is hidden by name and signature.

[Note: A method that is not hidden by name and signature is hidden by name only. ]

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.MemberAccessMask Field

MemberAccessMask = 7;

Summary

Specifies a bit-mask that, when combined with the attributes of a method using the logical AND operator, yields the bits that specify the accessibility of a method.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.NewSlot Field

NewSlot = 256;

Summary

Specifies that the method always gets a new slot in the v-table.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.PinvokeImpl Field

PinvokeImpl = 8192;

Summary

Specifies that the method implementation is forwarded through PInvoke (Platform Invocation Services).

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Private Field

Private = 1;

Summary

Specifies that the method is accessible only to members in the defining type.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.PrivateScope Field

PrivateScope = 0;

Summary

Specifies that the member cannot be referenced.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Public Field

Public = 6;

Summary

Specifies that the method is accessible to members of any type.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.ReuseSlot Field

ReuseSlot = 0;

Summary

Specifies that the method will reuse an existing slot in the v-table.

[Note: This is the default behavior. ]

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.SpecialName Field

SpecialName = 2048;

Summary

Specifies that the method is treated in a special way by some tools.

[Note: For more information on special names, see Partition I of the CLI Specification.

For more information on SpecialName in metadata, see Partition II of the CLI Specification.

]

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Static Field

Static = 16;

Summary

Specifies that the method is invoked on the defining type.

[Note: For method invocation, the target of a static method is a Type object that represents the type where the method is defined.]

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.Virtual Field

Virtual = 64;

Summary

Specifies that the method is virtual.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.VtableLayoutMask Field

VtableLayoutMask = 256;

Summary

Specifies a bit-mask that, when combined with the attributes of a method using the logical AND operator, yields the v-table attributes of a method.

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace

MethodAttributes.value__ Field

value__;

See Also

System.Reflection.MethodAttributes Enum, System.Reflection Namespace