ModuleBuilder.DefineGlobalMethodCore 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.
När den åsidosättas i en härledd klass definierar en global metod med angivet namn, attribut, anropande konvention, returtyp, anpassade modifierare för returtypen, parametertyper och anpassade modifierare för parametertyperna.
protected:
abstract System::Reflection::Emit::MethodBuilder ^ DefineGlobalMethodCore(System::String ^ name, System::Reflection::MethodAttributes attributes, System::Reflection::CallingConventions callingConvention, Type ^ returnType, cli::array <Type ^> ^ requiredReturnTypeCustomModifiers, cli::array <Type ^> ^ optionalReturnTypeCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ requiredParameterTypeCustomModifiers, cli::array <cli::array <Type ^> ^> ^ optionalParameterTypeCustomModifiers);
protected abstract System.Reflection.Emit.MethodBuilder DefineGlobalMethodCore(string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, Type? returnType, Type[]? requiredReturnTypeCustomModifiers, Type[]? optionalReturnTypeCustomModifiers, Type[]? parameterTypes, Type[][]? requiredParameterTypeCustomModifiers, Type[][]? optionalParameterTypeCustomModifiers);
abstract member DefineGlobalMethodCore : string * System.Reflection.MethodAttributes * System.Reflection.CallingConventions * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.MethodBuilder
Protected MustOverride Function DefineGlobalMethodCore (name As String, attributes As MethodAttributes, callingConvention As CallingConventions, returnType As Type, requiredReturnTypeCustomModifiers As Type(), optionalReturnTypeCustomModifiers As Type(), parameterTypes As Type(), requiredParameterTypeCustomModifiers As Type()(), optionalParameterTypeCustomModifiers As Type()()) As MethodBuilder
Parametrar
- name
- String
Namnet på metoden.
name kan inte innehålla inbäddade null tecken.
- attributes
- MethodAttributes
En bitvis kombination av uppräkningsvärdena som anger metodens attribut. Attributen måste innehålla Static.
- callingConvention
- CallingConventions
Anropskonventionen för metoden.
- returnType
- Type
Metodens returtyp.
- requiredReturnTypeCustomModifiers
- Type[]
En matris med typer som representerar nödvändiga anpassade modifierare för returtypen.
- optionalReturnTypeCustomModifiers
- Type[]
En matris med typer som representerar valfria anpassade modifierare för returtypen.
- parameterTypes
- Type[]
Typerna av metodens parametrar.
- requiredParameterTypeCustomModifiers
- Type[][]
En matris med matriser av typer. Varje typmatris representerar nödvändiga anpassade modifierare för motsvarande parameter för den globala metoden.
- optionalParameterTypeCustomModifiers
- Type[][]
En matris med matriser av typer. Varje matris med typer representerar valfria anpassade modifierare för motsvarande parameter för den globala metoden.
Returer
Den definierade globala metoden.