ActiveDirectorySiteLinkCollection.AddRange 方法
定义
将一个范围内的项追加到此集合中。Appends a range of items to this collection.
重载
| AddRange(ActiveDirectorySiteLink[]) |
将指定 ActiveDirectorySiteLink 数组的内容追加到此集合中。Appends the contents of the specified ActiveDirectorySiteLink array to this collection. |
| AddRange(ActiveDirectorySiteLinkCollection) |
将指定 ActiveDirectorySiteLinkCollection 对象的内容追加到此集合中。Appends the contents of the specified ActiveDirectorySiteLinkCollection object to this collection. |
AddRange(ActiveDirectorySiteLink[])
将指定 ActiveDirectorySiteLink 数组的内容追加到此集合中。Appends the contents of the specified ActiveDirectorySiteLink array to this collection.
public:
void AddRange(cli::array <System::DirectoryServices::ActiveDirectory::ActiveDirectorySiteLink ^> ^ links);
public void AddRange (System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink[] links);
member this.AddRange : System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink[] -> unit
Public Sub AddRange (links As ActiveDirectorySiteLink())
参数
- links
- ActiveDirectorySiteLink[]
ActiveDirectorySiteLink 数组,包含要追加到此集合的对象。The ActiveDirectorySiteLink array that contains the objects to append to this collection.
例外
调用基础目录服务导致错误。A call to the underlying directory service resulted in an error.
集合中已存在该对象。The object already exists in the collection.
links 为 null。links is null.
尚未将 ActiveDirectorySiteLink 对象保存到 Active Directory 域服务存储区中。The ActiveDirectorySiteLink object has not yet been saved in the Active Directory Domain Services store.
另请参阅
适用于
AddRange(ActiveDirectorySiteLinkCollection)
将指定 ActiveDirectorySiteLinkCollection 对象的内容追加到此集合中。Appends the contents of the specified ActiveDirectorySiteLinkCollection object to this collection.
public:
void AddRange(System::DirectoryServices::ActiveDirectory::ActiveDirectorySiteLinkCollection ^ links);
public void AddRange (System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLinkCollection links);
member this.AddRange : System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLinkCollection -> unit
Public Sub AddRange (links As ActiveDirectorySiteLinkCollection)
参数
ActiveDirectorySiteLinkCollection 对象,包含要追加到此集合的对象。The ActiveDirectorySiteLinkCollection object that contains the objects to append to this collection.
例外
调用基础目录服务导致错误。A call to the underlying directory service resulted in an error.
此集合中已存在该对象。The object already exists in this collection.
links 为 null。links is null.
尚未将 ActiveDirectorySiteLink 对象保存到 Active Directory 域服务存储区中。The ActiveDirectorySiteLink object has not yet been saved in the Active Directory Domain Services store.