/// <include file='doc\DirectoryServicesPermission.uex' path='docs/doc[@for="DirectoryServicesPermission.DirectoryServicesPermission3"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public DirectoryServicesPermission(DirectoryServicesPermissionEntry[] permissionAccessEntries) { if (permissionAccessEntries == null) throw new ArgumentNullException("permissionAccessEntries"); SetNames(); for (int index = 0; index < permissionAccessEntries.Length; ++index) this.AddPermissionAccess(permissionAccessEntries[index]); }
public int IndexOf(DirectoryServicesPermissionEntry value) { Contract.Requires(value != null); Contract.Ensures(Contract.Result <int>() >= -1); Contract.Ensures(Contract.Result <int>() < this.Count); return(default(int)); }
public int IndexOf(DirectoryServicesPermissionEntry value) { Contract.Requires(value != null); Contract.Ensures(Contract.Result<int>() >= -1); Contract.Ensures(Contract.Result<int>() < this.Count); return default(int); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.AddRange"]/*' /> public void AddRange(DirectoryServicesPermissionEntry[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } }
public DirectoryServicesPermission(DirectoryServicesPermissionEntry[] permissionAccessEntries) { if (permissionAccessEntries == null) { throw new ArgumentNullException("permissionAccessEntries"); } this.SetNames(); for (int i = 0; i < permissionAccessEntries.Length; i++) { this.AddPermissionAccess(permissionAccessEntries[i]); } }
internal DirectoryServicesPermissionEntryCollection (DirectoryServicesPermission owner) { this.owner = owner; ResourcePermissionBaseEntry[] entries = owner.GetEntries (); if (entries.Length > 0) { foreach (ResourcePermissionBaseEntry entry in entries) { DirectoryServicesPermissionAccess dspa = (DirectoryServicesPermissionAccess) entry.PermissionAccess; DirectoryServicesPermissionEntry dspe = new DirectoryServicesPermissionEntry (dspa, entry.PermissionAccessPath [0]); // we don't want to add them (again) to the base class InnerList.Add (dspe); } } }
internal DirectoryServicesPermissionEntryCollection(DirectoryServicesPermission owner) { this.owner = owner; ResourcePermissionBaseEntry[] entries = owner.GetEntries(); if (entries.Length > 0) { foreach (ResourcePermissionBaseEntry entry in entries) { DirectoryServicesPermissionAccess dspa = (DirectoryServicesPermissionAccess)entry.PermissionAccess; DirectoryServicesPermissionEntry dspe = new DirectoryServicesPermissionEntry(dspa, entry.PermissionAccessPath [0]); // we don't want to add them (again) to the base class InnerList.Add(dspe); } } }
/// <include file='doc\DirectoryServicesPermission.uex' path='docs/doc[@for="DirectoryServicesPermission.RemovePermissionAccess"]/*' /> ///<internalonly/> internal void RemovePermissionAccess(DirectoryServicesPermissionEntry entry) { base.RemovePermissionAccess(entry.GetBaseEntry()); }
public bool Contains(DirectoryServicesPermissionEntry value) { return default(bool); }
public int Add(DirectoryServicesPermissionEntry value) { Contract.Requires(value != null); return default(int); }
public void Copy () { foreach (DirectoryServicesPermissionAccess ppl in AllAccess) { DirectoryServicesPermission dsp = new DirectoryServicesPermission (PermissionState.None); DirectoryServicesPermissionEntry dspe = new DirectoryServicesPermissionEntry (ppl, ppl.ToString ()); dsp.PermissionEntries.Add (dspe); DirectoryServicesPermission copy = (DirectoryServicesPermission)dsp.Copy (); Assert.AreEqual (1, copy.PermissionEntries.Count, "Count==1"); Assert.AreEqual (ppl, dsp.PermissionEntries [0].PermissionAccess, ppl.ToString ()); Assert.AreEqual (ppl.ToString (), dsp.PermissionEntries [0].Path, ppl.ToString () + "-Path"); } }
public void Remove(DirectoryServicesPermissionEntry value) { base.List.Remove(value); }
public int IndexOf(DirectoryServicesPermissionEntry value) { return(base.List.IndexOf(value)); }
public DirectoryServicesPermission(DirectoryServicesPermissionEntry[] permissionAccessEntries) { Contract.Requires(permissionAccessEntries != null); Contract.Requires(Contract.ForAll(permissionAccessEntries, x => x != null)); }
public int Add(DirectoryServicesPermissionEntry entry) { return(List.Add(entry)); }
public void Remove(DirectoryServicesPermissionEntry entry) { List.Remove(entry); }
public void Insert(int pos, DirectoryServicesPermissionEntry entry) { List.Insert(pos, entry); }
public int IndexOf(DirectoryServicesPermissionEntry entry) { return(List.IndexOf(entry)); }
public bool Contains(DirectoryServicesPermissionEntry entry) { return(List.Contains(entry)); }
public void Remove(DirectoryServicesPermissionEntry value) { }
public int IndexOf(DirectoryServicesPermissionEntry value) { return(0); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.Add"]/*' /> public int Add(DirectoryServicesPermissionEntry value) { return List.Add(value); }
public void Remove (DirectoryServicesPermissionEntry entry) { List.Remove (entry); }
public bool Contains(DirectoryServicesPermissionEntry value) { return(base.List.Contains(value)); }
public int Add (DirectoryServicesPermissionEntry entry) { return List.Add (entry); }
public void Insert(int index, DirectoryServicesPermissionEntry value) { base.List.Insert(index, value); }
public void AddRange (DirectoryServicesPermissionEntry[] entries) { foreach (DirectoryServicesPermissionEntry entry in entries) Add (entry); }
public void PermissionEntries () { DirectoryServicesPermissionAccess dspa = DirectoryServicesPermissionAccess.None; DirectoryServicesPermission dsp = new DirectoryServicesPermission (dspa, String.Empty); DirectoryServicesPermissionEntryCollection dspec = dsp.PermissionEntries; Assert.AreEqual (1, dspec.Count, "Count==1"); DirectoryServicesPermissionEntry dspe = new DirectoryServicesPermissionEntry (DirectoryServicesPermissionAccess.Browse, "*"); dsp.PermissionEntries.Add (dspe); Assert.AreEqual (2, dspec.Count, "Count==2"); // remove (same instance) dsp.PermissionEntries.Remove (dspe); Assert.AreEqual (1, dspec.Count, "Count==1 (b)"); // remove different instance (doesn't work) dspe = new DirectoryServicesPermissionEntry (DirectoryServicesPermissionAccess.None, String.Empty); Assert.AreEqual (1, dspec.Count, "Count==1"); }
public void CopyTo (DirectoryServicesPermissionEntry[] copy_to, int index) { foreach (DirectoryServicesPermissionEntry entry in List) copy_to[index++] = entry; }
public DirectoryServicesPermission (DirectoryServicesPermissionEntry[] entries) { SetUp (); innerCollection = new DirectoryServicesPermissionEntryCollection (this); innerCollection.AddRange (entries); }
public bool Contains (DirectoryServicesPermissionEntry entry) { return List.Contains (entry); }
public void AddRange(DirectoryServicesPermissionEntry[] value) { Contract.Requires(value != null); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.Contains"]/*' /> public bool Contains(DirectoryServicesPermissionEntry value) { return List.Contains(value); }
public void CopyTo(DirectoryServicesPermissionEntry[] array, int index) { Contract.Requires(array != null); Contract.Requires(index >= 0); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.IndexOf"]/*' /> public int IndexOf(DirectoryServicesPermissionEntry value) { return List.IndexOf(value); }
public bool Contains(DirectoryServicesPermissionEntry value) { return(false); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.Remove"]/*' /> public void Remove(DirectoryServicesPermissionEntry value) { List.Remove(value); }
public void Insert(int index, DirectoryServicesPermissionEntry value) { }
public int Add(DirectoryServicesPermissionEntry value) { Contract.Requires(value != null); return(default(int)); }
public int IndexOf (DirectoryServicesPermissionEntry entry) { return List.IndexOf (entry); }
public bool Contains(DirectoryServicesPermissionEntry value) { return(default(bool)); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.CopyTo"]/*' /> public void CopyTo(DirectoryServicesPermissionEntry[] array, int index) { List.CopyTo(array, index); }
public void Insert (int pos, DirectoryServicesPermissionEntry entry) { List.Insert (pos, entry); }
/// <include file='doc\DirectoryServicesPermissionEntryCollection.uex' path='docs/doc[@for="DirectoryServicesPermissionEntryCollection.Insert"]/*' /> public void Insert(int index, DirectoryServicesPermissionEntry value) { List.Insert(index, value); }
internal void Remove(object obj) { DirectoryServicesPermissionEntry dspe = (obj as DirectoryServicesPermissionEntry); base.RemovePermissionAccess(dspe.GetBaseEntry()); }
internal void RemovePermissionAccess(DirectoryServicesPermissionEntry entry) { base.RemovePermissionAccess(entry.GetBaseEntry()); }
public int Add(DirectoryServicesPermissionEntry value) { return(base.List.Add(value)); }