ホーム › NetworkManagement.Dhcp › DHCP_SUBNET_STATE
DHCP_SUBNET_STATE
列挙型メンバー 5
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| DhcpSubnetEnabled | 0 | 0x0 | サブネットは有効です。サーバーは、サブネットの範囲内のアドレスをクライアントに配布し、リースを延長し、アドレスを解放します。 |
| DhcpSubnetDisabled | 1 | 0x1 | サブネットは無効です。サーバーは、サブネットの範囲内のアドレスをクライアントに配布したり、リースを延長したりしません。ただし、サーバーはサブネットの範囲内のアドレスの解放は引き続き行います。 |
| DhcpSubnetEnabledSwitched | 2 | 0x2 | サブネットは有効です。サーバーは、サブネットの範囲内のアドレスをクライアントに配布し、リースを延長し、アドレスを解放します。既定のゲートウェイはローカル コンピューター自身に設定されます。 |
| DhcpSubnetDisabledSwitched | 3 | 0x3 | サブネットは無効です。サーバーは、サブネットの範囲内のアドレスをクライアントに配布したり、リースを延長したりしません。ただし、サーバーはサブネットの範囲内のアドレスの解放は引き続き行います。既定のゲートウェイはローカル コンピューター自身に設定されます。 |
| DhcpSubnetInvalidState | 4 | 0x4 | サブネットは無効な状態です。 |
公式ドキュメント
DHCP_SUBNET_STATE 列挙型は、サブネットが取り得る状態の集合を定義します。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum DHCP_SUBNET_STATE : int {
DhcpSubnetEnabled = 0,
DhcpSubnetDisabled = 1,
DhcpSubnetEnabledSwitched = 2,
DhcpSubnetDisabledSwitched = 3,
DhcpSubnetInvalidState = 4
} DHCP_SUBNET_STATE;public enum DHCP_SUBNET_STATE : int
{
DhcpSubnetEnabled = 0,
DhcpSubnetDisabled = 1,
DhcpSubnetEnabledSwitched = 2,
DhcpSubnetDisabledSwitched = 3,
DhcpSubnetInvalidState = 4,
}Public Enum DHCP_SUBNET_STATE As Integer
DhcpSubnetEnabled = 0
DhcpSubnetDisabled = 1
DhcpSubnetEnabledSwitched = 2
DhcpSubnetDisabledSwitched = 3
DhcpSubnetInvalidState = 4
End Enumimport enum
class DHCP_SUBNET_STATE(enum.IntEnum):
DhcpSubnetEnabled = 0
DhcpSubnetDisabled = 1
DhcpSubnetEnabledSwitched = 2
DhcpSubnetDisabledSwitched = 3
DhcpSubnetInvalidState = 4// DHCP_SUBNET_STATE
pub const DhcpSubnetEnabled: i32 = 0;
pub const DhcpSubnetDisabled: i32 = 1;
pub const DhcpSubnetEnabledSwitched: i32 = 2;
pub const DhcpSubnetDisabledSwitched: i32 = 3;
pub const DhcpSubnetInvalidState: i32 = 4;// DHCP_SUBNET_STATE
const (
DhcpSubnetEnabled int32 = 0
DhcpSubnetDisabled int32 = 1
DhcpSubnetEnabledSwitched int32 = 2
DhcpSubnetDisabledSwitched int32 = 3
DhcpSubnetInvalidState int32 = 4
)const
DhcpSubnetEnabled = 0;
DhcpSubnetDisabled = 1;
DhcpSubnetEnabledSwitched = 2;
DhcpSubnetDisabledSwitched = 3;
DhcpSubnetInvalidState = 4;// DHCP_SUBNET_STATE
pub const DhcpSubnetEnabled: i32 = 0;
pub const DhcpSubnetDisabled: i32 = 1;
pub const DhcpSubnetEnabledSwitched: i32 = 2;
pub const DhcpSubnetDisabledSwitched: i32 = 3;
pub const DhcpSubnetInvalidState: i32 = 4;const
DhcpSubnetEnabled* = 0
DhcpSubnetDisabled* = 1
DhcpSubnetEnabledSwitched* = 2
DhcpSubnetDisabledSwitched* = 3
DhcpSubnetInvalidState* = 4enum DHCP_SUBNET_STATE : int {
DhcpSubnetEnabled = 0,
DhcpSubnetDisabled = 1,
DhcpSubnetEnabledSwitched = 2,
DhcpSubnetDisabledSwitched = 3,
DhcpSubnetInvalidState = 4,
}#define global DhcpSubnetEnabled 0x0
#define global DhcpSubnetDisabled 0x1
#define global DhcpSubnetEnabledSwitched 0x2
#define global DhcpSubnetDisabledSwitched 0x3
#define global DhcpSubnetInvalidState 0x4