MicrosoftDNS_Zone 類別的 ResetSecondaries 方法

ResetSecondaries方法會重設區域中次要 DNS 伺服器的 IP 位址。

語法

void ResetSecondaries(
  [in]       string            SecondaryServers[],
  [in]       uint32            SecureSecondaries,
  [in]       string            NotifyServers[],
  [in]       uint32            Notify,
  [out, ref] MicrosoftDns_Zone &RR
);

參數

SecondaryServers [in]

次要 DNS 伺服器的 IP 位址陣列。

SecureSecondaries [in]

指定要套用的安全性,而且必須是下列其中一項:

  • ZONE_SECSECURE_NO_SECURITY
  • ZONE_SECSECURE_NS_ONLY
  • ZONE_SECSECURE_LIST_ONLY
  • ZONE_SECSECURE_NO_XFR

NotifyServers [in]

區域變更時要通知的 DNS 伺服器的 IP 位址。

通知 [in]

通知設定和 必須是下列其中一項:

  • ZONE_NOTIFY_OFF
  • ZONE_NOTIFY_ALL_SECONDARIES
  • ZONE_NOTIFY_LIST_ONLY

RR [out, ref]

MicrosoftDNS_Zone類型的RR。

傳回值

這個方法不會傳回值。

規格需求

需求
最低支援的用戶端
都不支援
最低支援的伺服器
Windows 2000 Server [僅限傳統型應用程式]
命名空間
Root\MicrosoftDNS
MOF
Dnsprov.mof

另請參閱

MicrosoftDNS_Zone

MicrosoftDNS_Zone 類別的 AgeAllRecords 方法

MicrosoftDNS_Zone 類別的 ChangeZoneType 方法

MicrosoftDNS_Zone 類別的 CreateZone 方法

MicrosoftDNS_Zone 類別的 ForceRefresh 方法

MicrosoftDNS_Zone 類別的 GetDistinguishedName 方法

MicrosoftDNS_Zone 類別的 PauseZone 方法

MicrosoftDNS_Zone 類別的 ReloadZone 方法

MicrosoftDNS_Zone 類別的 ResumeZone 方法

MicrosoftDNS_Zone 類別的 UpdateFromDS 方法

MicrosoftDNS_Zone 類別的 WriteBackZone 方法