DirectoryAttributeCollection.AddRange 方法

定义

向当前集合添加对象。

重载

AddRange(DirectoryAttribute[])

AddRange(DirectoryAttribute[]) 方法可向集合中添加 DirectoryAttribute 对象数组。

AddRange(DirectoryAttributeCollection)

AddRange(DirectoryAttributeCollection) 方法可向当前集合添加一个 DirectoryAttributeCollection 对象。

AddRange(DirectoryAttribute[])

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

AddRange(DirectoryAttribute[]) 方法可向集合中添加 DirectoryAttribute 对象数组。

public:
 void AddRange(cli::array <System::DirectoryServices::Protocols::DirectoryAttribute ^> ^ attributes);
public void AddRange (System.DirectoryServices.Protocols.DirectoryAttribute[] attributes);
member this.AddRange : System.DirectoryServices.Protocols.DirectoryAttribute[] -> unit
Public Sub AddRange (attributes As DirectoryAttribute())

参数

attributes
DirectoryAttribute[]

要添加到集合中的 DirectoryAttribute 组成的数组。

例外

attributes 为空引用(在 Visual Basic 中为 Nothing)。

一个 attributes 成员为 null 引用(在 Visual Basic 中为 Nothing),或者一个 attributes 成员指定修改操作而不是添加操作。

适用于

AddRange(DirectoryAttributeCollection)

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

AddRange(DirectoryAttributeCollection) 方法可向当前集合添加一个 DirectoryAttributeCollection 对象。

public:
 void AddRange(System::DirectoryServices::Protocols::DirectoryAttributeCollection ^ attributeCollection);
public void AddRange (System.DirectoryServices.Protocols.DirectoryAttributeCollection attributeCollection);
member this.AddRange : System.DirectoryServices.Protocols.DirectoryAttributeCollection -> unit
Public Sub AddRange (attributeCollection As DirectoryAttributeCollection)

参数

attributeCollection
DirectoryAttributeCollection

要添加到该集合中的 DirectoryAttributeCollection 对象。

例外

attributeCollection 为空引用(在 Visual Basic 中为 Nothing)。

适用于