MethodRental MethodRental MethodRental MethodRental Class

Definition

Provides a fast way to swap method body implementation given a method of a class.

public ref class MethodRental sealed : System::Runtime::InteropServices::_MethodRental
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class MethodRental : System.Runtime.InteropServices._MethodRental
type MethodRental = class
    interface _MethodRental
Public NotInheritable Class MethodRental
Implements _MethodRental
Inheritance
MethodRentalMethodRentalMethodRentalMethodRental
Attributes
Implements

Fields

JitImmediate JitImmediate JitImmediate JitImmediate

Specifies that the method should be just-in-time (JIT) compiled immediately.

JitOnDemand JitOnDemand JitOnDemand JitOnDemand

Specifies that the method should be just-in-time (JIT) compiled when needed.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SwapMethodBody(Type, Int32, IntPtr, Int32, Int32) SwapMethodBody(Type, Int32, IntPtr, Int32, Int32) SwapMethodBody(Type, Int32, IntPtr, Int32, Int32) SwapMethodBody(Type, Int32, IntPtr, Int32, Int32)

Swaps the body of a method.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

_MethodRental.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) _MethodRental.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) _MethodRental.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) _MethodRental.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.

_MethodRental.GetTypeInfo(UInt32, UInt32, IntPtr) _MethodRental.GetTypeInfo(UInt32, UInt32, IntPtr) _MethodRental.GetTypeInfo(UInt32, UInt32, IntPtr) _MethodRental.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

_MethodRental.GetTypeInfoCount(UInt32) _MethodRental.GetTypeInfoCount(UInt32) _MethodRental.GetTypeInfoCount(UInt32) _MethodRental.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

_MethodRental.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _MethodRental.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _MethodRental.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _MethodRental.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.

Security

ReflectionPermission
when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). Associated enumeration: MemberAccess.

Applies to