private DhcpServerClass GetClass() { if (VendorName != null) { return(DhcpServerClass.GetClass(Server, VendorName)); } else if (ClassName != null) { return(DhcpServerClass.GetClass(Server, ClassName)); } else { return(null); } }
public IEnumerator <IDhcpServerClass> GetEnumerator() => DhcpServerClass.GetClasses(Server).GetEnumerator();
/// <summary> /// Queries the DHCP Server for the specified User or Vendor Class /// </summary> /// <param name="Name">The name of the User or Vendor Class to retrieve</param> /// <returns>A <see cref="DhcpServerClass"/>.</returns> public DhcpServerClass GetClass(string Name) { return(DhcpServerClass.GetClass(this, Name)); }
/// <summary> /// Queries the DHCP Server for the specified User or Vendor Class /// </summary> /// <param name="name">The name of the User or Vendor Class to retrieve</param> /// <returns>A <see cref="DhcpServerClass"/>.</returns> public IDhcpServerClass GetClass(string name) => DhcpServerClass.GetClass(Server, name);