Name

CallingConventions

Synopsis

Calling conventions are the rules that govern the semantics of how method arguments and return values are passed. They also specify which registers to use, and designate what this method does with the stack. The following list describes each enumeration member:

Standard

Designates the default CLR conventions.

VarArgs

Allows variable arguments.

Any

Allows either convention.

HasThis

Passes the target method the this (or Me) reference as the first argument and cannot be used for shared methods.

ExplicitThis

Represents a call to a nonshared method and is a function pointer (for delegates). If ExplicitThis is set, HasThis must also be set.

Public Enum CallingConventions
                  Standard = &H000000001
                  VarArgs = &H000000002
                  Any = &H000000003
                  HasThis = &H000000020
                  ExplicitThis = &H000000040
End Enum

Hierarchy

System.ObjectSystem.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) CallingConventions

Returned By

MethodBase.CallingConvention

Passed To

Multiple types

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.