PrincipalCollection.CopyTo(Principal[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the Principal objects from this PrincipalCollection into the specified array, starting at the specified position index in array.
public:
virtual void CopyTo(cli::array <System::DirectoryServices::AccountManagement::Principal ^> ^ array, int index);
public void CopyTo (System.DirectoryServices.AccountManagement.Principal[] array, int index);
abstract member CopyTo : System.DirectoryServices.AccountManagement.Principal[] * int -> unit
override this.CopyTo : System.DirectoryServices.AccountManagement.Principal[] * int -> unit
Public Sub CopyTo (array As Principal(), index As Integer)
Parameters
- index
- Int32
The position in array
into which the first principal object in the collection should be copied.
Implements
Remarks
array
must be one-dimensional. If it is not, an ArgumentException is thrown. Further exceptions are thrown if the number of elements to copy is greater than the available space from index
to the end of array
, if array
is null
, or if index
is less than 0.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈