External

The External aspect marks a method as being natively imported via P/Invoke or JNI. It is mainly provided for Mercury, which does not provide a dedicated keyword such as external/extern/native in Oxygene, C# and Java do.

A method marked with External must have an empty method body (or be decarred with empty in Oxygene)

.NET and Java Only

The External aspect is available only on the .NET (where it is redundant, because DllImport is required too) and Java platforms.

Public Class MyClass = public class 
  
  <External>
  Shared Sub SomeNativeCode()
    // may not contain code
  End Sub
  
End Class

See Also