ModuleBuilder.DefineGlobalMethodCore Metoda

Definicja

Po zastąpieniu w klasie pochodnej definiuje metodę globalną o określonej nazwie, atrybutach, konwencji wywoływania, typie zwracanym, modyfikatorach niestandardowych dla zwracanego typu, typów parametrów i modyfikatorów niestandardowych dla typów parametrów.

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

Parametry

name
String

Nazwa metody. name Program nie może zawierać znaków osadzonych null .

attributes
MethodAttributes

Bitowa kombinacja wartości wyliczenia, która określa atrybuty metody. Atrybuty muszą zawierać element Static.

callingConvention
CallingConventions

Konwencja wywoływania metody .

returnType
Type

Zwracany typ metody.

requiredReturnTypeCustomModifiers
Type[]

Tablica typów reprezentujących wymagane modyfikatory niestandardowe dla typu zwracanego.

optionalReturnTypeCustomModifiers
Type[]

Tablica typów reprezentujących opcjonalne modyfikatory niestandardowe dla typu zwracanego.

parameterTypes
Type[]

Typy parametrów metody.

requiredParameterTypeCustomModifiers
Type[][]

Tablica tablic typów. Każda tablica typów reprezentuje wymagane modyfikatory niestandardowe dla odpowiedniego parametru metody globalnej.

optionalParameterTypeCustomModifiers
Type[][]

Tablica tablic typów. Każda tablica typów reprezentuje opcjonalne modyfikatory niestandardowe dla odpowiedniego parametru metody globalnej.

Zwraca

Zdefiniowana metoda globalna.

Dotyczy