mscorlib(4.0.0.0) API with additions
System.Configuration.SettingElement Class Reference

Represents a simplified configuration element used for updating elements in the configuration. This class cannot be inherited. More...

Inherits ConfigurationElement.

Public Member Functions

 SettingElement ()
 Initializes a new instance of the T:System.Configuration.SettingElement class. More...
 
 SettingElement (string name, SettingsSerializeAs serializeAs)
 Initializes a new instance of the T:System.Configuration.SettingElement class based on supplied parameters. More...
 
override bool Equals (object settings)
 Compares the current T:System.Configuration.SettingElement instance to the specified object. More...
 
override int GetHashCode ()
 Gets a unique value representing the T:System.Configuration.SettingElement current instance. More...
 

Properties

internal override ConfigurationPropertyCollection Properties [protected get]
 
string Name [get, set]
 Gets or sets the name of the T:System.Configuration.SettingElement object. More...
 
SettingsSerializeAs SerializeAs [get, set]
 Gets or sets the serialization mechanism used to persist the values of the T:System.Configuration.SettingElement object. More...
 
SettingValueElement Value [get, set]
 Gets or sets the value of a T:System.Configuration.SettingElement object by using a T:System.Configuration.SettingValueElement object. More...
 

Detailed Description

Represents a simplified configuration element used for updating elements in the configuration. This class cannot be inherited.

Definition at line 6 of file SettingElement.cs.

Constructor & Destructor Documentation

◆ SettingElement() [1/2]

System.Configuration.SettingElement.SettingElement ( )

Initializes a new instance of the T:System.Configuration.SettingElement class.

Definition at line 86 of file SettingElement.cs.

◆ SettingElement() [2/2]

System.Configuration.SettingElement.SettingElement ( string  name,
SettingsSerializeAs  serializeAs 
)

Initializes a new instance of the T:System.Configuration.SettingElement class based on supplied parameters.

Parameters
nameThe name of the T:System.Configuration.SettingElement object.
serializeAsA T:System.Configuration.SettingsSerializeAs object. This object is an enumeration used as the serialization scheme to store configuration settings.

Definition at line 93 of file SettingElement.cs.

Member Function Documentation

◆ Equals()

override bool System.Configuration.SettingElement.Equals ( object  settings)

Compares the current T:System.Configuration.SettingElement instance to the specified object.

Parameters
settingsThe object to compare with.
Returns
true if the T:System.Configuration.SettingElement instance is equal to the specified object; otherwise, false.

Definition at line 104 of file SettingElement.cs.

◆ GetHashCode()

override int System.Configuration.SettingElement.GetHashCode ( )

Gets a unique value representing the T:System.Configuration.SettingElement current instance.

Returns
A unique value representing the T:System.Configuration.SettingElement current instance.

Definition at line 116 of file SettingElement.cs.

Property Documentation

◆ Name

string System.Configuration.SettingElement.Name
getset

Gets or sets the name of the T:System.Configuration.SettingElement object.

Returns
The name of the T:System.Configuration.SettingElement object.

Definition at line 32 of file SettingElement.cs.

◆ SerializeAs

SettingsSerializeAs System.Configuration.SettingElement.SerializeAs
getset

Gets or sets the serialization mechanism used to persist the values of the T:System.Configuration.SettingElement object.

Returns
A T:System.Configuration.SettingsSerializeAs object.

Definition at line 47 of file SettingElement.cs.

◆ Value

SettingValueElement System.Configuration.SettingElement.Value
getset

Gets or sets the value of a T:System.Configuration.SettingElement object by using a T:System.Configuration.SettingValueElement object.

Returns
A T:System.Configuration.SettingValueElement object containing the value of the T:System.Configuration.SettingElement object.

Definition at line 62 of file SettingElement.cs.


The documentation for this class was generated from the following file: