예제 #1
0
 private DhcpServerIpRange GetIpRange()
 {
     return(EnumSubnetElements(DHCP_SUBNET_ELEMENT_TYPE_V5.DhcpIpRangesDhcpBootp)
            .Select(e => DhcpServerIpRange.FromNative(e.ReadIpRange()))
            .First());
 }
예제 #2
0
 private List <DhcpServerIpRange> GetExcludedIpRanges()
 {
     return(EnumSubnetElements(DHCP_SUBNET_ELEMENT_TYPE_V5.DhcpExcludedIpRanges)
            .Select(e => DhcpServerIpRange.FromNative(e.ReadExcludeIpRange()))
            .ToList());
 }