Język

MetadataBuilder.AddMethodImport Metoda

Definicja

Dodaje informacje importowania do definicji metody.

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)

Parametry

method
MethodDefinitionHandle

Uchwyt definicji metody.

attributes
MethodImportAttributes

Metoda importuje atrybuty.

name
StringHandle

Niezarządzana nazwa metody.

module
ModuleReferenceHandle

Moduł zawierający metodę niezarządzaną.

Uwagi

Import metody należy dodać w tej samej kolejności co odpowiednie definicje metody.

Dotyczy