ModuleBuilder.GetConstructorToken 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回用于标识此模块内的指定构造函数的标记。
重载
| GetConstructorToken(ConstructorInfo) | 
						 返回用于标识此模块内的指定构造函数的标记。  | 
        	
| GetConstructorToken(ConstructorInfo, IEnumerable<Type>) | 
						 返回在此模块用于标识具有指定的特性和参数类型的构造函数的标记。  | 
        	
GetConstructorToken(ConstructorInfo)
返回用于标识此模块内的指定构造函数的标记。
public:
 System::Reflection::Emit::MethodToken GetConstructorToken(System::Reflection::ConstructorInfo ^ con);
	public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo con);
	[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo con);
	member this.GetConstructorToken : System.Reflection.ConstructorInfo -> System.Reflection.Emit.MethodToken
	[<System.Runtime.InteropServices.ComVisible(true)>]
member this.GetConstructorToken : System.Reflection.ConstructorInfo -> System.Reflection.Emit.MethodToken
	Public Function GetConstructorToken (con As ConstructorInfo) As MethodToken
	参数
- con
 - ConstructorInfo
 
要为其获取标记的构造函数。
返回
用于标识此模块内的指定构造函数的标记。
- 属性
 
例外
              con 为 null。
适用于
GetConstructorToken(ConstructorInfo, IEnumerable<Type>)
返回在此模块用于标识具有指定的特性和参数类型的构造函数的标记。
public:
 System::Reflection::Emit::MethodToken GetConstructorToken(System::Reflection::ConstructorInfo ^ constructor, System::Collections::Generic::IEnumerable<Type ^> ^ optionalParameterTypes);
	public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo constructor, System.Collections.Generic.IEnumerable<Type> optionalParameterTypes);
	member this.GetConstructorToken : System.Reflection.ConstructorInfo * seq<Type> -> System.Reflection.Emit.MethodToken
	Public Function GetConstructorToken (constructor As ConstructorInfo, optionalParameterTypes As IEnumerable(Of Type)) As MethodToken
	参数
- constructor
 - ConstructorInfo
 
要为其获取标记的构造函数。
- optionalParameterTypes
 - IEnumerable<Type>
 
构造函数的可选参数类型的集合。
返回
用于标识此模块内的指定构造函数的标记。
例外
              constructor 为 null。