MethodRental MethodRental MethodRental MethodRental Class

定义

在给定类的方法的情况下,提供一种交换方法体实现的快速方法。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
继承
MethodRentalMethodRentalMethodRentalMethodRental
属性
实现

字段

JitImmediate JitImmediate JitImmediate JitImmediate

指定应以实时 (JIT) 方式立即编译该方法。Specifies that the method should be just-in-time (JIT) compiled immediately.

JitOnDemand JitOnDemand JitOnDemand JitOnDemand

指定应在需要时以实时 (JIT) 方式编译该方法。Specifies that the method should be just-in-time (JIT) compiled when needed.

方法

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()

获取当前实例的 TypeGets the Type of the current instance.

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

创建当前 Object 的浅表副本。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)

显式界面实现

_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)

检索对象提供的类型信息接口的数量(0 或 1)。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.

安全性

ReflectionPermission
当调用后期绑定机制通过如InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). 关联枚举:MemberAccessAssociated enumeration: MemberAccess.

适用于