ModuleBuilder.GetConstructorToken Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar den token som används för att identifiera den angivna konstruktorn i den här modulen.
Överlagringar
| Name | Description |
|---|---|
| GetConstructorToken(ConstructorInfo) |
Returnerar den token som används för att identifiera den angivna konstruktorn i den här modulen. |
| GetConstructorToken(ConstructorInfo, IEnumerable<Type>) |
Returnerar den token som används för att identifiera konstruktorn som har de angivna attributen och parametertyperna i den här modulen. |
GetConstructorToken(ConstructorInfo)
Returnerar den token som används för att identifiera den angivna konstruktorn i den här modulen.
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
Parametrar
- con
- ConstructorInfo
Konstruktorn att hämta en token för.
Returer
Den token som används för att identifiera den angivna konstruktorn i den här modulen.
- Attribut
Undantag
con är null.
Gäller för
GetConstructorToken(ConstructorInfo, IEnumerable<Type>)
Returnerar den token som används för att identifiera konstruktorn som har de angivna attributen och parametertyperna i den här modulen.
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
Parametrar
- constructor
- ConstructorInfo
Konstruktorn att hämta en token för.
- optionalParameterTypes
- IEnumerable<Type>
En samling av de valfria parametrarnas typer till konstruktorn.
Returer
Den token som används för att identifiera den angivna konstruktorn i den här modulen.
Undantag
constructor är null.