158 lines
9.5 KiB
C#
158 lines
9.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Configuration
|
|
{
|
|
/// <summary>Contains the value of a settings property that can be loaded and stored by an instance of <see cref="T:System.Configuration.SettingsBase" />.</summary>
|
|
// Token: 0x02000383 RID: 899
|
|
[Token(Token = "0x2000383")]
|
|
public class SettingsPropertyValue
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Configuration.SettingsPropertyValue" /> class, based on supplied parameters.</summary>
|
|
/// <param name="property">Specifies a <see cref="T:System.Configuration.SettingsProperty" /> object.</param>
|
|
// Token: 0x060017C4 RID: 6084 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60017C4")]
|
|
[Address(RVA = "0x2F47550", Offset = "0x2F46550", VA = "0x182F47550")]
|
|
public SettingsPropertyValue(SettingsProperty property)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets whether the value of a <see cref="T:System.Configuration.SettingsProperty" /> object has been deserialized.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the value of a <see cref="T:System.Configuration.SettingsProperty" /> object has been deserialized; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000513 RID: 1299
|
|
// (get) Token: 0x060017C5 RID: 6085 RVA: 0x0000A698 File Offset: 0x00008898
|
|
// (set) Token: 0x060017C6 RID: 6086 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000513")]
|
|
public bool Deserialized
|
|
{
|
|
[Token(Token = "0x60017C5")]
|
|
[Address(RVA = "0x2F47580", Offset = "0x2F46580", VA = "0x182F47580")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x60017C6")]
|
|
[Address(RVA = "0x2F476D0", Offset = "0x2F466D0", VA = "0x182F476D0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets whether the value of a <see cref="T:System.Configuration.SettingsProperty" /> object has changed.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the value of a <see cref="T:System.Configuration.SettingsProperty" /> object has changed; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000514 RID: 1300
|
|
// (get) Token: 0x060017C7 RID: 6087 RVA: 0x0000A6B0 File Offset: 0x000088B0
|
|
// (set) Token: 0x060017C8 RID: 6088 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000514")]
|
|
public bool IsDirty
|
|
{
|
|
[Token(Token = "0x60017C7")]
|
|
[Address(RVA = "0x2F475B0", Offset = "0x2F465B0", VA = "0x182F475B0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x60017C8")]
|
|
[Address(RVA = "0x2F47700", Offset = "0x2F46700", VA = "0x182F47700")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the name of the property from the associated <see cref="T:System.Configuration.SettingsProperty" /> object.</summary>
|
|
/// <returns>The name of the <see cref="T:System.Configuration.SettingsProperty" /> object.</returns>
|
|
// Token: 0x17000515 RID: 1301
|
|
// (get) Token: 0x060017C9 RID: 6089 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000515")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x60017C9")]
|
|
[Address(RVA = "0x2F475E0", Offset = "0x2F465E0", VA = "0x182F475E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Configuration.SettingsProperty" /> object.</summary>
|
|
/// <returns>The <see cref="T:System.Configuration.SettingsProperty" /> object that describes the <see cref="T:System.Configuration.SettingsPropertyValue" /> object.</returns>
|
|
// Token: 0x17000516 RID: 1302
|
|
// (get) Token: 0x060017CA RID: 6090 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000516")]
|
|
public SettingsProperty Property
|
|
{
|
|
[Token(Token = "0x60017CA")]
|
|
[Address(RVA = "0x2F47640", Offset = "0x2F46640", VA = "0x182F47640")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the value of the <see cref="T:System.Configuration.SettingsProperty" /> object.</summary>
|
|
/// <returns>The value of the <see cref="T:System.Configuration.SettingsProperty" /> object. When this value is set, the <see cref="P:System.Configuration.SettingsPropertyValue.IsDirty" /> property is set to <see langword="true" /> and <see cref="P:System.Configuration.SettingsPropertyValue.UsingDefaultValue" /> is set to <see langword="false" />.
|
|
/// When a value is first accessed from the <see cref="P:System.Configuration.SettingsPropertyValue.PropertyValue" /> property, and if the value was initially stored into the <see cref="T:System.Configuration.SettingsPropertyValue" /> object as a serialized representation using the <see cref="P:System.Configuration.SettingsPropertyValue.SerializedValue" /> property, the <see cref="P:System.Configuration.SettingsPropertyValue.PropertyValue" /> property will trigger deserialization of the underlying value. As a side effect, the <see cref="P:System.Configuration.SettingsPropertyValue.Deserialized" /> property will be set to <see langword="true" />.
|
|
/// If this chain of events occurs in ASP.NET, and if an error occurs during the deserialization process, the error is logged using the health-monitoring feature of ASP.NET. By default, this means that deserialization errors will show up in the Application Event Log when running under ASP.NET. If this process occurs outside of ASP.NET, and if an error occurs during deserialization, the error is suppressed, and the remainder of the logic during deserialization occurs. If there is no serialized value to deserialize when the deserialization is attempted, then <see cref="T:System.Configuration.SettingsPropertyValue" /> object will instead attempt to return a default value if one was configured as defined on the associated <see cref="T:System.Configuration.SettingsProperty" /> instance. In this case, if the <see cref="P:System.Configuration.SettingsProperty.DefaultValue" /> property was set to either <see langword="null" />, or to the string "[null]", then the <see cref="T:System.Configuration.SettingsPropertyValue" /> object will initialize the <see cref="P:System.Configuration.SettingsPropertyValue.PropertyValue" /> property to either <see langword="null" /> for reference types, or to the default value for the associated value type. On the other hand, if <see cref="P:System.Configuration.SettingsProperty.DefaultValue" /> property holds a valid object reference or string value (other than "[null]"), then the <see cref="P:System.Configuration.SettingsProperty.DefaultValue" /> property is returned instead.
|
|
/// If there is no serialized value to deserialize when the deserialization is attempted, and no default value was specified, then an empty string will be returned for string types. For all other types, a default instance will be returned by calling <see cref="M:System.Activator.CreateInstance(System.Type)" /> - for reference types this means an attempt will be made to create an object instance using the default constructor. If this attempt fails, then <see langword="null" /> is returned.</returns>
|
|
/// <exception cref="T:System.ArgumentException">While attempting to use the default value from the <see cref="P:System.Configuration.SettingsProperty.DefaultValue" /> property, an error occurred. Either the attempt to convert <see cref="P:System.Configuration.SettingsProperty.DefaultValue" /> property to a valid type failed, or the resulting value was not compatible with the type defined by <see cref="P:System.Configuration.SettingsProperty.PropertyType" />.</exception>
|
|
// Token: 0x17000517 RID: 1303
|
|
// (get) Token: 0x060017CB RID: 6091 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x060017CC RID: 6092 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000517")]
|
|
public object PropertyValue
|
|
{
|
|
[Token(Token = "0x60017CB")]
|
|
[Address(RVA = "0x2F47610", Offset = "0x2F46610", VA = "0x182F47610")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60017CC")]
|
|
[Address(RVA = "0x2F47730", Offset = "0x2F46730", VA = "0x182F47730")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the serialized value of the <see cref="T:System.Configuration.SettingsProperty" /> object.</summary>
|
|
/// <returns>The serialized value of a <see cref="T:System.Configuration.SettingsProperty" /> object.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The serialization options for the property indicated the use of a string type converter, but a type converter was not available.</exception>
|
|
// Token: 0x17000518 RID: 1304
|
|
// (get) Token: 0x060017CD RID: 6093 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x060017CE RID: 6094 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000518")]
|
|
public object SerializedValue
|
|
{
|
|
[Token(Token = "0x60017CD")]
|
|
[Address(RVA = "0x2F47670", Offset = "0x2F46670", VA = "0x182F47670")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60017CE")]
|
|
[Address(RVA = "0x2F47760", Offset = "0x2F46760", VA = "0x182F47760")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a Boolean value specifying whether the value of the <see cref="T:System.Configuration.SettingsPropertyValue" /> object is the default value as defined by the <see cref="P:System.Configuration.SettingsProperty.DefaultValue" /> property value on the associated <see cref="T:System.Configuration.SettingsProperty" /> object.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the value of the <see cref="T:System.Configuration.SettingsProperty" /> object is the default value; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000519 RID: 1305
|
|
// (get) Token: 0x060017CF RID: 6095 RVA: 0x0000A6C8 File Offset: 0x000088C8
|
|
[Token(Token = "0x17000519")]
|
|
public bool UsingDefaultValue
|
|
{
|
|
[Token(Token = "0x60017CF")]
|
|
[Address(RVA = "0x2F476A0", Offset = "0x2F466A0", VA = "0x182F476A0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
}
|
|
}
|