SignatureHelper.GetMethodSigHelper 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回方法的签名帮助程序。
重载
| GetMethodSigHelper(Module, Type, Type[]) | 
						 已知方法的模块、返回类型和参数类型,返回具有标准调用约定的方法的签名帮助程序。  | 
        	
| GetMethodSigHelper(Module, CallingConvention, Type) | 
						 已知方法的模块、非托管调用约定和返回类型,返回方法的签名帮助程序。  | 
        	
| GetMethodSigHelper(CallingConvention, Type) | 
						 已知方法的非托管调用约定和返回类型,返回方法的签名帮助程序。  | 
        	
| GetMethodSigHelper(CallingConventions, Type) | 
						 已知方法的调用约定和返回类型,返回方法的签名帮助程序。  | 
        	
| GetMethodSigHelper(Module, CallingConventions, Type) | 
						 在给定了方法的模块、调用约定和返回类型的情况下,返回方法的签名帮助程序。  | 
        	
GetMethodSigHelper(Module, Type, Type[])
- Source:
 - SignatureHelper.cs
 
- Source:
 - SignatureHelper.cs
 
- Source:
 - SignatureHelper.cs
 
已知方法的模块、返回类型和参数类型,返回具有标准调用约定的方法的签名帮助程序。
public:
 static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::Module ^ mod, Type ^ returnType, cli::array <Type ^> ^ parameterTypes);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module? mod, Type? returnType, Type[]? parameterTypes);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module mod, Type returnType, Type[] parameterTypes);
	static member GetMethodSigHelper : System.Reflection.Module * Type * Type[] -> System.Reflection.Emit.SignatureHelper
	Public Shared Function GetMethodSigHelper (mod As Module, returnType As Type, parameterTypes As Type()) As SignatureHelper
	参数
- mod
 - Module
 
包含 SignatureHelper 请求的方法的 ModuleBuilder。
- returnType
 - Type
 
方法的返回类型,对于 void 返回类型为 null(在 Visual Basic 中为 Sub 过程)。
- parameterTypes
 - Type[]
 
方法的参数类型,如果方法没有参数,则为 null。
返回
方法的 SignatureHelper 对象。
例外
              mod 不是 ModuleBuilder。
注解
此重载使用标准调用约定创建签名。
若要使用自定义修饰符创建方法签名,请使用 GetMethodSigHelper(Module, CallingConventions, Type) 方法重载,然后使用 AddArgument(Type, Type[], Type[]) 或 AddArguments(Type[], Type[][], Type[][]) 方法重载添加具有自定义修饰符的参数。
适用于
GetMethodSigHelper(Module, CallingConvention, Type)
已知方法的模块、非托管调用约定和返回类型,返回方法的签名帮助程序。
public:
 static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::Module ^ mod, System::Runtime::InteropServices::CallingConvention unmanagedCallConv, Type ^ returnType);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module mod, System.Runtime.InteropServices.CallingConvention unmanagedCallConv, Type returnType);
	static member GetMethodSigHelper : System.Reflection.Module * System.Runtime.InteropServices.CallingConvention * Type -> System.Reflection.Emit.SignatureHelper
	Public Shared Function GetMethodSigHelper (mod As Module, unmanagedCallConv As CallingConvention, returnType As Type) As SignatureHelper
	参数
- mod
 - Module
 
包含 SignatureHelper 请求的方法的 ModuleBuilder。
- unmanagedCallConv
 - CallingConvention
 
此方法的非托管调用约定。
- returnType
 - Type
 
方法的返回类型,对于 void 返回类型为 null(在 Visual Basic 中为 Sub 过程)。
返回
方法的 SignatureHelper 对象。
例外
              mod 为 null。
适用于
GetMethodSigHelper(CallingConvention, Type)
已知方法的非托管调用约定和返回类型,返回方法的签名帮助程序。
public:
 static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Runtime::InteropServices::CallingConvention unmanagedCallingConvention, Type ^ returnType);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Runtime.InteropServices.CallingConvention unmanagedCallingConvention, Type returnType);
	static member GetMethodSigHelper : System.Runtime.InteropServices.CallingConvention * Type -> System.Reflection.Emit.SignatureHelper
	Public Shared Function GetMethodSigHelper (unmanagedCallingConvention As CallingConvention, returnType As Type) As SignatureHelper
	参数
- unmanagedCallingConvention
 - CallingConvention
 
此方法的非托管调用约定。
- returnType
 - Type
 
方法的返回类型,对于 void 返回类型为 null(在 Visual Basic 中为 Sub 过程)。
返回
方法的 SignatureHelper 对象。
例外
              unmanagedCallConv 是未知的非托管调用约定。
适用于
GetMethodSigHelper(CallingConventions, Type)
- Source:
 - SignatureHelper.cs
 
- Source:
 - SignatureHelper.cs
 
- Source:
 - SignatureHelper.cs
 
已知方法的调用约定和返回类型,返回方法的签名帮助程序。
public:
 static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::CallingConventions callingConvention, Type ^ returnType);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.CallingConventions callingConvention, Type? returnType);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.CallingConventions callingConvention, Type returnType);
	static member GetMethodSigHelper : System.Reflection.CallingConventions * Type -> System.Reflection.Emit.SignatureHelper
	Public Shared Function GetMethodSigHelper (callingConvention As CallingConventions, returnType As Type) As SignatureHelper
	参数
- callingConvention
 - CallingConventions
 
方法的调用约定。
- returnType
 - Type
 
方法的返回类型,对于 void 返回类型为 null(在 Visual Basic 中为 Sub 过程)。
返回
方法的 SignatureHelper 对象。
适用于
GetMethodSigHelper(Module, CallingConventions, Type)
- Source:
 - SignatureHelper.cs
 
- Source:
 - SignatureHelper.cs
 
- Source:
 - SignatureHelper.cs
 
在给定了方法的模块、调用约定和返回类型的情况下,返回方法的签名帮助程序。
public:
 static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::Module ^ mod, System::Reflection::CallingConventions callingConvention, Type ^ returnType);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module? mod, System.Reflection.CallingConventions callingConvention, Type? returnType);
	public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module mod, System.Reflection.CallingConventions callingConvention, Type returnType);
	static member GetMethodSigHelper : System.Reflection.Module * System.Reflection.CallingConventions * Type -> System.Reflection.Emit.SignatureHelper
	Public Shared Function GetMethodSigHelper (mod As Module, callingConvention As CallingConventions, returnType As Type) As SignatureHelper
	参数
- mod
 - Module
 
包含 SignatureHelper 请求的方法的 ModuleBuilder。
- callingConvention
 - CallingConventions
 
方法的调用约定。
- returnType
 - Type
 
方法的返回类型,对于 void 返回类型为 null(在 Visual Basic 中为 Sub 过程)。
返回
方法的 SignatureHelper 对象。
例外
              mod 为 null。
              mod 不是 ModuleBuilder。