InterfaceOptions
Static class in Oadm.Sdk.Network · Oadm.Sdk.dll
Builds the entries of an interface select.
public static class InterfaceOptionsProperties
Section titled “Properties”static InterfaceOption All { get; }The first entry of every select: every address.
Methods
Section titled “Methods”static InterfaceOption From(ServerNetworkInterface nic, string? addressText = null)The option of an interface; addressText defaults to its primary address.
static bool IsAll(string? id)The id means every address (null, empty or InterfaceOptions.AllId).
static string Label(ServerNetworkInterface nic, string addressText)“Ethernet - 10.0.0.17 (Intel I219)”; the description is left out when it equals the name.
Fields
Section titled “Fields”const string AllId = "all"The id of the choice that listens on every address.
AllLabel
Section titled “AllLabel”const string AllLabel = "All interfaces"The text of that choice.