scripts
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace System.Security.AccessControl
|
||||
{
|
||||
/// <summary>Represents an access control list (ACL) and is the base class for the <see cref="T:System.Security.AccessControl.DiscretionaryAcl" /> and <see cref="T:System.Security.AccessControl.SystemAcl" /> classes.</summary>
|
||||
// Token: 0x020004AF RID: 1199
|
||||
public abstract class CommonAcl : GenericAcl
|
||||
{
|
||||
// Token: 0x06002CBF RID: 11455 RVA: 0x00092FF4 File Offset: 0x000911F4
|
||||
internal CommonAcl(bool isContainer, bool isDS, byte revision)
|
||||
: this(isContainer, isDS, revision, 10)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002CC0 RID: 11456 RVA: 0x00093004 File Offset: 0x00091204
|
||||
internal CommonAcl(bool isContainer, bool isDS, byte revision, int capacity)
|
||||
{
|
||||
this.is_container = isContainer;
|
||||
this.is_ds = isDS;
|
||||
this.revision = revision;
|
||||
this.list = new List<GenericAce>(capacity);
|
||||
}
|
||||
|
||||
/// <summary>Gets the length, in bytes, of the binary representation of the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object. This length should be used before marshaling the access control list (ACL) into a binary array by using the <see cref="M:System.Security.AccessControl.CommonAcl.GetBinaryForm" /> method.</summary>
|
||||
/// <returns>The length, in bytes, of the binary representation of the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object.</returns>
|
||||
// Token: 0x170008C1 RID: 2241
|
||||
// (get) Token: 0x06002CC1 RID: 11457 RVA: 0x0009303C File Offset: 0x0009123C
|
||||
[MonoTODO]
|
||||
public sealed override int BinaryLength
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of access control entries (ACEs) in the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object.</summary>
|
||||
/// <returns>The number of ACEs in the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object.</returns>
|
||||
// Token: 0x170008C2 RID: 2242
|
||||
// (get) Token: 0x06002CC2 RID: 11458 RVA: 0x00093044 File Offset: 0x00091244
|
||||
public sealed override int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.list.Count;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a Boolean value that specifies whether the access control entries (ACEs) in the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object are in canonical order.</summary>
|
||||
/// <returns>true if the ACEs in the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object are in canonical order; otherwise, false.</returns>
|
||||
// Token: 0x170008C3 RID: 2243
|
||||
// (get) Token: 0x06002CC3 RID: 11459 RVA: 0x00093054 File Offset: 0x00091254
|
||||
[MonoTODO]
|
||||
public bool IsCanonical
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets whether the <see cref="T:System.Security.AccessControl.CommonAcl" /> object is a container. </summary>
|
||||
/// <returns>true if the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object is a container.</returns>
|
||||
// Token: 0x170008C4 RID: 2244
|
||||
// (get) Token: 0x06002CC4 RID: 11460 RVA: 0x0009305C File Offset: 0x0009125C
|
||||
public bool IsContainer
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.is_container;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets whether the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object is a directory object access control list (ACL).</summary>
|
||||
/// <returns>true if the current <see cref="T:System.Security.AccessControl.CommonAcl" /> object is a directory object ACL.</returns>
|
||||
// Token: 0x170008C5 RID: 2245
|
||||
// (get) Token: 0x06002CC5 RID: 11461 RVA: 0x00093064 File Offset: 0x00091264
|
||||
public bool IsDS
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.is_ds;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the <see cref="T:System.Security.AccessControl.CommonAce" /> at the specified index.</summary>
|
||||
/// <returns>The <see cref="T:System.Security.AccessControl.CommonAce" /> at the specified index.</returns>
|
||||
/// <param name="index">The zero-based index of the <see cref="T:System.Security.AccessControl.CommonAce" /> to get or set.</param>
|
||||
// Token: 0x170008C6 RID: 2246
|
||||
public sealed override GenericAce this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.list[index];
|
||||
}
|
||||
set
|
||||
{
|
||||
this.list[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the revision level of the <see cref="T:System.Security.AccessControl.CommonAcl" />.</summary>
|
||||
/// <returns>A byte value that specifies the revision level of the <see cref="T:System.Security.AccessControl.CommonAcl" />.</returns>
|
||||
// Token: 0x170008C7 RID: 2247
|
||||
// (get) Token: 0x06002CC8 RID: 11464 RVA: 0x0009308C File Offset: 0x0009128C
|
||||
public sealed override byte Revision
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.revision;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Marshals the contents of the <see cref="T:System.Security.AccessControl.CommonAcl" /> object into the specified byte array beginning at the specified offset.</summary>
|
||||
/// <param name="binaryForm">The byte array into which the contents of the <see cref="T:System.Security.AccessControl.CommonAcl" /> is marshaled.</param>
|
||||
/// <param name="offset">The offset at which to start marshaling.</param>
|
||||
// Token: 0x06002CC9 RID: 11465 RVA: 0x00093094 File Offset: 0x00091294
|
||||
[MonoTODO]
|
||||
public sealed override void GetBinaryForm(byte[] binaryForm, int offset)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <summary>Removes all access control entries (ACEs) contained by this <see cref="T:System.Security.AccessControl.CommonAcl" /> object that are associated with the specified <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</summary>
|
||||
/// <param name="sid">The <see cref="T:System.Security.Principal.SecurityIdentifier" /> object to check for.</param>
|
||||
// Token: 0x06002CCA RID: 11466 RVA: 0x0009309C File Offset: 0x0009129C
|
||||
[MonoTODO]
|
||||
public void Purge(SecurityIdentifier sid)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <summary>Removes all inherited access control entries (ACEs) from this <see cref="T:System.Security.AccessControl.CommonAcl" /> object.</summary>
|
||||
// Token: 0x06002CCB RID: 11467 RVA: 0x000930A4 File Offset: 0x000912A4
|
||||
[MonoTODO]
|
||||
public void RemoveInheritedAces()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
// Token: 0x0400119C RID: 4508
|
||||
private const int default_capacity = 10;
|
||||
|
||||
// Token: 0x0400119D RID: 4509
|
||||
private bool is_container;
|
||||
|
||||
// Token: 0x0400119E RID: 4510
|
||||
private bool is_ds;
|
||||
|
||||
// Token: 0x0400119F RID: 4511
|
||||
private byte revision;
|
||||
|
||||
// Token: 0x040011A0 RID: 4512
|
||||
private List<GenericAce> list;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user