MethodRental 类

定义

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

字段

JitImmediate

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

JitOnDemand

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

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SwapMethodBody(Type, Int32, IntPtr, Int32, Int32)

交换方法体。Swaps the body of a method.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

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

将一组名称映射为对应的一组调度标识符。Maps a set of names to a corresponding set of dispatch identifiers.

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

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

提供对某一对象公开的属性和方法的访问。Provides access to properties and methods exposed by an object.

适用于