38 lines
1.5 KiB
C#
38 lines
1.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Security.AccessControl
|
|
{
|
|
/// <summary>Represents a collection of <see cref="T:System.Security.AccessControl.AuthorizationRule" /> objects.</summary>
|
|
// Token: 0x020004AD RID: 1197
|
|
public sealed class AuthorizationRuleCollection : ReadOnlyCollectionBase
|
|
{
|
|
// Token: 0x06002CB8 RID: 11448 RVA: 0x00092F84 File Offset: 0x00091184
|
|
private AuthorizationRuleCollection(AuthorizationRule[] rules)
|
|
{
|
|
base.InnerList.AddRange(rules);
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Security.AccessControl.AuthorizationRule" /> object at the specified index of the collection.</summary>
|
|
/// <returns>The <see cref="T:System.Security.AccessControl.AuthorizationRule" /> object at the specified index.</returns>
|
|
/// <param name="index">The zero-based index of the <see cref="T:System.Security.AccessControl.AuthorizationRule" /> object to get.</param>
|
|
// Token: 0x170008BF RID: 2239
|
|
public AuthorizationRule this[int index]
|
|
{
|
|
get
|
|
{
|
|
return (AuthorizationRule)base.InnerList[index];
|
|
}
|
|
}
|
|
|
|
/// <summary>Copies the contents of the collection to an array.</summary>
|
|
/// <param name="rules">An array to which to copy the contents of the collection.</param>
|
|
/// <param name="index">The zero-based index from which to begin copying.</param>
|
|
// Token: 0x06002CBA RID: 11450 RVA: 0x00092FAC File Offset: 0x000911AC
|
|
public void CopyTo(AuthorizationRule[] rules, int index)
|
|
{
|
|
base.InnerList.CopyTo(rules, index);
|
|
}
|
|
}
|
|
}
|