NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PermissionSet.CopyTo

Copies the permission objects of the set to the indicated location in an Array.

[Visual Basic]
Overridable Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
)
[C#]
public virtual void CopyTo(
   Array array,
   int index
);
[C++]
public: virtual void CopyTo(
   Array* array,
   int index
);
[JScript]
public function CopyTo(
   array : Array,
   index : int
);

Parameters

array
Target array to copy to.
index
Starting position in the array to being copying (zero based).

Return Value

None

Exceptions

Exception Type Condition
ArgumentException if the specified index is out of range for array.

Remarks

Provides copy function from a permission set into any Array type.

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace