Published

The Published aspect can be applied to a type member to indicate it will be used indirectly, and should not be eliminated by the linker, whenever the type itself is linked. It is similar to the published visibility level in Oxygene, except that it can also be applied to non-public members.

Island Only

The Published aspect is available on the Island-backed platforms only.

type
  MyControl = public class 
  public
    [Published]
    method Draw();
    begin
    end;
  end;
public class MyControl
{
    [Published]
    void Draw()
    {
    }
}
public class MyControl {
    @Published func Draw() {
    }
}
public class MyControl {
    @Published func Draw() {
    }
}

See Also