64 lines
2.7 KiB
C#
64 lines
2.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Security.Policy
|
|
{
|
|
/// <summary>Represents the enumerator for <see cref="T:System.Security.Policy.ApplicationTrust" /> objects in the <see cref="T:System.Security.Policy.ApplicationTrustCollection" /> collection.</summary>
|
|
// Token: 0x02000580 RID: 1408
|
|
[ComVisible(true)]
|
|
public sealed class ApplicationTrustEnumerator : IEnumerator
|
|
{
|
|
// Token: 0x06003380 RID: 13184 RVA: 0x000B1068 File Offset: 0x000AF268
|
|
internal ApplicationTrustEnumerator(ApplicationTrustCollection collection)
|
|
{
|
|
this.e = collection.GetEnumerator();
|
|
}
|
|
|
|
/// <summary>Gets the current <see cref="T:System.Object" /> in the <see cref="T:System.Security.Policy.ApplicationTrustCollection" /> collection.</summary>
|
|
/// <returns>The current <see cref="T:System.Object" /> in the <see cref="T:System.Security.Policy.ApplicationTrustCollection" />.</returns>
|
|
// Token: 0x17000A1F RID: 2591
|
|
// (get) Token: 0x06003381 RID: 13185 RVA: 0x000B107C File Offset: 0x000AF27C
|
|
object IEnumerator.Current
|
|
{
|
|
get
|
|
{
|
|
return this.e.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the current <see cref="T:System.Security.Policy.ApplicationTrust" /> object in the <see cref="T:System.Security.Policy.ApplicationTrustCollection" /> collection.</summary>
|
|
/// <returns>The current <see cref="T:System.Security.Policy.ApplicationTrust" /> in the <see cref="T:System.Security.Policy.ApplicationTrustCollection" />.</returns>
|
|
// Token: 0x17000A20 RID: 2592
|
|
// (get) Token: 0x06003382 RID: 13186 RVA: 0x000B108C File Offset: 0x000AF28C
|
|
public ApplicationTrust Current
|
|
{
|
|
get
|
|
{
|
|
return (ApplicationTrust)this.e.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Moves to the next element in the <see cref="T:System.Security.Policy.ApplicationTrustCollection" /> collection.</summary>
|
|
/// <returns>true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
|
|
/// </PermissionSet>
|
|
// Token: 0x06003383 RID: 13187 RVA: 0x000B10A0 File Offset: 0x000AF2A0
|
|
public bool MoveNext()
|
|
{
|
|
return this.e.MoveNext();
|
|
}
|
|
|
|
/// <summary>Resets the enumerator to the beginning of the <see cref="T:System.Security.Policy.ApplicationTrustCollection" /> collection.</summary>
|
|
// Token: 0x06003384 RID: 13188 RVA: 0x000B10B0 File Offset: 0x000AF2B0
|
|
public void Reset()
|
|
{
|
|
this.e.Reset();
|
|
}
|
|
|
|
// Token: 0x04001513 RID: 5395
|
|
private IEnumerator e;
|
|
}
|
|
}
|