ModuleBuilder.GetConstructorToken Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
A modulban megadott konstruktor azonosításához használt jogkivonatot adja vissza.
Túlterhelések
| Name | Description |
|---|---|
| GetConstructorToken(ConstructorInfo) |
A modulban megadott konstruktor azonosításához használt jogkivonatot adja vissza. |
| GetConstructorToken(ConstructorInfo, IEnumerable<Type>) |
A modulban megadott attribútumokat és paramétertípusokat tartalmazó konstruktor azonosításához használt jogkivonatot adja vissza. |
GetConstructorToken(ConstructorInfo)
A modulban megadott konstruktor azonosításához használt jogkivonatot adja vissza.
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
Paraméterek
- con
- ConstructorInfo
A konstruktor, amelyhez jogkivonatot szeretne lekérni.
Válaszok
A modulban megadott konstruktor azonosítására használt jogkivonat.
- Attribútumok
Kivételek
con az null.
A következőre érvényes:
GetConstructorToken(ConstructorInfo, IEnumerable<Type>)
A modulban megadott attribútumokat és paramétertípusokat tartalmazó konstruktor azonosításához használt jogkivonatot adja vissza.
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
Paraméterek
- constructor
- ConstructorInfo
A konstruktor, amelyhez jogkivonatot szeretne lekérni.
- optionalParameterTypes
- IEnumerable<Type>
A konstruktor számára választható paraméterek típusainak gyűjteménye.
Válaszok
A modulban megadott konstruktor azonosítására használt jogkivonat.
Kivételek
constructor az null.