Bagikan melalui


MetadataBuilder.AddMethodImport Metode

Definisi

Menambahkan informasi impor ke definisi metode.

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)

Parameter

method
MethodDefinitionHandle

Handel definisi metode.

attributes
MethodImportAttributes

Atribut impor metode.

name
StringHandle

Nama metode yang tidak dikelola.

module
ModuleReferenceHandle

Modul yang berisi metode tidak terkelola.

Keterangan

Impor metode harus ditambahkan dalam urutan yang sama dengan definisi metode yang sesuai.

Berlaku untuk