private DhcpServerClass GetClass()
 {
     if (VendorName != null)
     {
         return(DhcpServerClass.GetClass(Server, VendorName));
     }
     else if (ClassName != null)
     {
         return(DhcpServerClass.GetClass(Server, ClassName));
     }
     else
     {
         return(null);
     }
 }
Exemple #2
0
 public IEnumerator <IDhcpServerClass> GetEnumerator()
 => DhcpServerClass.GetClasses(Server).GetEnumerator();
Exemple #3
0
 /// <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));
 }
Exemple #4
0
 /// <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);