MicrosoftDNS_Zone 類別的 CreateZone 方法
CreateZone方法會建立 DNS 區域。
語法
void CreateZone(
[in] string ZoneName,
[in] uint32 ZoneType,
[in] boolean DsIntegrated,
[in, optional] string DataFileName,
[in, optional] string IpAddr[],
[in, optional] string AdminEmailName,
[out, ref] MicrosoftDns_Zone &RR
);
參數
-
ZoneName [in]
-
表示區功能變數名稱稱的字串。
-
ZoneType [in]
-
區欄位型別。 有效的值如下:
值 意義 - 1
AD 整合。 - 2
次要區域。 - 3
虛設常式區域。
Windows Server 2003: Windows Server 2003 引進此區欄位型別。- 4
區域轉寄站。
Windows Server 2003: Windows Server 2003 引進此區欄位型別。 -
DsIntegrated [in]
-
指出區域資料是儲存在 Active Directory 還是檔案中。 如果為 TRUE,資料會儲存在 Active Directory 中;如果為 FALSE,則資料會儲存在檔案中。
-
DataFileName [in, optional]
-
與區域相關聯的資料檔案名稱。
-
IpAddr [in, optional]
-
區域的主要 DNS 伺服器的 IP 位址。
-
AdminEmailName [in, optional]
-
Email負責區域的系統管理員位址。
-
RR [out, ref]
-
類型 為 MicrosoftDns_Zone的 RR。
傳回值
這個方法不會傳回值。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 |
都不支援 |
最低支援的伺服器 |
Windows 2000 Server [僅限傳統型應用程式] |
命名空間 |
Root\MicrosoftDNS |
MOF |
|
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應