MetadataBuilder.AddMethodImport Metodo

Definizione

Aggiunge informazioni di importazione a una definizione di metodo.

public:
 void AddMethodImport(System::Reflection::Metadata::MethodDefinitionHandle method, System::Reflection::MethodImportAttributes attributes, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::ModuleReferenceHandle module);
public void AddMethodImport (System.Reflection.Metadata.MethodDefinitionHandle method, System.Reflection.MethodImportAttributes attributes, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.ModuleReferenceHandle module);
member this.AddMethodImport : System.Reflection.Metadata.MethodDefinitionHandle * System.Reflection.MethodImportAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.ModuleReferenceHandle -> unit
Public Sub AddMethodImport (method As MethodDefinitionHandle, attributes As MethodImportAttributes, name As StringHandle, module As ModuleReferenceHandle)

Parametri

method
MethodDefinitionHandle

Handle della definizione del metodo.

attributes
MethodImportAttributes

Attributi di importazione del metodo.

name
StringHandle

Nome del metodo non gestito.

module
ModuleReferenceHandle

Il modulo che contiene il metodo non gestito.

Commenti

Le importazioni di metodi devono essere aggiunte nello stesso ordine delle definizioni di metodo corrispondenti.

Si applica a