75 lines
3.4 KiB
C#
75 lines
3.4 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Configuration
|
|
{
|
|
/// <summary>Represents a configuration element containing a collection of child elements.</summary>
|
|
// Token: 0x02000005 RID: 5
|
|
[Token(Token = "0x2000005")]
|
|
[DebuggerDisplay("Count = {Count}")]
|
|
public abstract class ConfigurationElementCollection : ConfigurationElement
|
|
{
|
|
/// <summary>Gets the type of the <see cref="T:System.Configuration.ConfigurationElementCollection" />.</summary>
|
|
/// <returns>The <see cref="T:System.Configuration.ConfigurationElementCollectionType" /> of this collection.</returns>
|
|
// Token: 0x17000002 RID: 2
|
|
// (get) Token: 0x0600000E RID: 14 RVA: 0x000020A0 File Offset: 0x000002A0
|
|
[Token(Token = "0x17000002")]
|
|
public virtual ConfigurationElementCollectionType CollectionType
|
|
{
|
|
[Token(Token = "0x600000E")]
|
|
[Address(RVA = "0x74DF60", Offset = "0x74CD60", VA = "0x18074DF60", Slot = "13")]
|
|
get
|
|
{
|
|
return ConfigurationElementCollectionType.BasicMap;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the name used to identify this collection of elements in the configuration file when overridden in a derived class.</summary>
|
|
/// <returns>The name of the collection; otherwise, an empty string. The default is an empty string.</returns>
|
|
// Token: 0x17000003 RID: 3
|
|
// (get) Token: 0x0600000F RID: 15 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x17000003")]
|
|
protected virtual string ElementName
|
|
{
|
|
[Token(Token = "0x600000F")]
|
|
[Address(RVA = "0x74DF90", Offset = "0x74CD90", VA = "0x18074DF90", Slot = "14")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether an attempt to add a duplicate <see cref="T:System.Configuration.ConfigurationElement" /> to the <see cref="T:System.Configuration.ConfigurationElementCollection" /> will cause an exception to be thrown.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if an attempt to add a duplicate <see cref="T:System.Configuration.ConfigurationElement" /> to this <see cref="T:System.Configuration.ConfigurationElementCollection" /> will cause an exception to be thrown; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000004 RID: 4
|
|
// (get) Token: 0x06000010 RID: 16 RVA: 0x000020B8 File Offset: 0x000002B8
|
|
[Token(Token = "0x17000004")]
|
|
protected virtual bool ThrowOnDuplicate
|
|
{
|
|
[Token(Token = "0x6000010")]
|
|
[Address(RVA = "0x74DFC0", Offset = "0x74CDC0", VA = "0x18074DFC0", Slot = "15")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, creates a new <see cref="T:System.Configuration.ConfigurationElement" />.</summary>
|
|
/// <returns>A newly created <see cref="T:System.Configuration.ConfigurationElement" />.</returns>
|
|
// Token: 0x06000011 RID: 17
|
|
[Token(Token = "0x6000011")]
|
|
[Address(Slot = "16")]
|
|
protected abstract ConfigurationElement CreateNewElement();
|
|
|
|
/// <summary>Gets the element key for a specified configuration element when overridden in a derived class.</summary>
|
|
/// <param name="element">The <see cref="T:System.Configuration.ConfigurationElement" /> to return the key for.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> that acts as the key for the specified <see cref="T:System.Configuration.ConfigurationElement" />.</returns>
|
|
// Token: 0x06000012 RID: 18
|
|
[Token(Token = "0x6000012")]
|
|
[Address(Slot = "17")]
|
|
protected abstract object GetElementKey(ConfigurationElement element);
|
|
}
|
|
}
|