DHCP_SUBNET_ELEMENT_DATA_V4 結構 (dhcpsapi.h)

DHCP_SUBNET_ELEMENT_DATA_V4結構會定義描述子網特徵或限制的專案。 一組元素一起描述 DHCP 為子網提供服務的一組 IP 位址。 DHCP_SUBNET_ELEMENT_DATA_V4 特別允許將用戶端類型納入考慮的 IP 保留專案

.

語法

typedef struct _DHCP_SUBNET_ELEMENT_DATA_V4 {
  DHCP_SUBNET_ELEMENT_TYPE      ElementType;
#if ...
  union {
    DHCP_IP_RANGE          *IpRange;
    DHCP_HOST_INFO         *SecondaryHost;
    DHCP_IP_RESERVATION_V4 *ReservedIp;
    DHCP_IP_RANGE          *ExcludeIpRange;
    DHCP_IP_CLUSTER        *IpUsedCluster;
  } Element;
#if ...
  _DHCP_SUBNET_ELEMENT_UNION_V4 _DHCP_SUBNET_ELEMENT_UNION_V4;
#else
  union {
    DHCP_IP_RANGE          *IpRange;
    DHCP_HOST_INFO         *SecondaryHost;
    DHCP_IP_RESERVATION_V4 *ReservedIp;
    DHCP_IP_RANGE          *ExcludeIpRange;
    DHCP_IP_CLUSTER        *IpUsedCluster;
  } Element;
#endif
#else
  _DHCP_SUBNET_ELEMENT_UNION_V4 _DHCP_SUBNET_ELEMENT_UNION_V4;
#endif
} DHCP_SUBNET_ELEMENT_DATA_V4, *LPDHCP_SUBNET_ELEMENT_DATA_V4;

成員

ElementType

DHCP_SUBNET_ELEMENT_TYPE 列舉值,描述後續欄位中的專案類型。

Element

Element.IpRange

DHCP_IP_RANGE 結構,其中包含一組 DHCP 服務 IP 位址。 如果 ElementType 設定為 DhcpIpRanges,則此成員存在。

Element.SecondaryHost

DHCP_HOST_INFO 結構,其中包含子網上可用的次要 DHCP 伺服器的 IP 位址。 如果 ElementType 設定為 DhcpSecondaryHosts,就會存在這個成員。

Element.ReservedIp

DHCP_IP_RESER加值稅ION_V4 結構,其中包含子網的保留 IP 位址集。 如果 ElementType 設定為 DhcpExcludedIpRanges,則存在這個成員。

Element.ExcludeIpRange

DHCP_IP_RANGE 結構,其中包含排除的 IP 位址集。 如果 ElementType 設定為 DhcpExcludedIpRanges,則存在這個成員。

Element.IpUsedCluster

DHCP_IP_CLUSTER 結構,其中包含子網內的叢集集。 如果 ElementType 設定為 DhcpIpUsedClusters,則存在這個成員。

_DHCP_SUBNET_ELEMENT_UNION_V4

需求

   
最低支援的用戶端 都不支援
最低支援的伺服器 Windows Server 2008、Windows Server 2008 R2 [僅限傳統型應用程式]
標頭 dhcpsapi.h

另請參閱

DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4

DHCP_SUBNET_ELEMENT_TYPE