大网数据广告活动
域与目录服务

IADsReplicaPointer Property Methods (Iads.h)

· 52CE 我爱测

The property method of the IADsReplicaPointer interface sets the property described in the following table. For more information, see Interface Property Methods.

The property method of the IADsReplicaPointer interface sets the property described in the following table. For more information, see Interface Property Methods.

Properties

Count

The number of existing replicas.

Access type: Read/write

Scripting data type: LONG

// C++ method syntax
HRESULT get_Count(
  [out] LONG* retval
);
HRESULT put_Count(
  [in] LONG lnCount
);

ReplicaAddressHints

A network address suggested as a likely reference to a node leading to the name server.

Access type: Read/write

Scripting data type: VARIANT

// C++ method syntax
HRESULT get_ReplicaAddressHints(
  [out] VARIANT* retval
);
HRESULT put_ReplicaAddressHints(
  [in] VARIANT vReplicaAddressHints
);

ReplicaNumber

Identification number of the replica.

Access type: Read/write

Scripting data type: LONG

// C++ method syntax
HRESULT get_ReplicaNumber(
  [out] LONG* retval
);
HRESULT put_ReplicaNumber(
  [in] LONG lnReplicaNumber
);

ReplicaType

Type of replica (master, secondary, or read-only.)

Access type: Read/write

Scripting data type: LONG

// C++ method syntax
HRESULT get_ReplicaType(
  [out] LONG* retval
);
HRESULT put_ReplicaType(
  [in] LONG lnType
);

ServerName

Name of the name server holding the replica.

Access type: Read/write

Scripting data type: BSTR

// C++ method syntax
HRESULT get_ServerName(
  [out] BSTR* retVal
);
HRESULT put_ServerName(
  [in] BSTR bstrServerName
);

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header Iads.h
DLL Activeds.dll
IID IID_IADsReplicaPointer is defined as F60FB803-4080-11D1-A3AC-00C04FB950DC

See also

IADsReplicaPointer

ADS_REPLICAPOINTER

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。