Click or drag to resize

ConnectionStringParserTParameterAttribute, TNestedSettingsAttribute Class

Parses connection strings based on a settings object whose properties are annotated with TParameterAttribute and TNestedSettingsAttribute.
Inheritance Hierarchy
SystemObject
  GSF.ConfigurationConnectionStringParser
    GSF.ConfigurationConnectionStringParserTParameterAttribute
      GSF.ConfigurationConnectionStringParserTParameterAttribute, TNestedSettingsAttribute

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public class ConnectionStringParser<TParameterAttribute, TNestedSettingsAttribute> : ConnectionStringParser<TParameterAttribute>
where TParameterAttribute : Attribute
where TNestedSettingsAttribute : Attribute
View Source

Type Parameters

TParameterAttribute
The type of the attribute to search for when determining whether to serialize a property to the connection string.
TNestedSettingsAttribute
The type of the attribute to search for when determining which parameters are to be parsed recursively as connection strings.

The ConnectionStringParserTParameterAttribute, TNestedSettingsAttribute type exposes the following members.

Constructors
 NameDescription
Public methodConnectionStringParserTParameterAttribute, TNestedSettingsAttributeInitializes a new instance of the ConnectionStringParserTParameterAttribute, TNestedSettingsAttribute class
Top
Properties
 NameDescription
Public propertyEndValueDelimiter Gets or sets the end value delimiter used to denote the end of a value in the cases where the value contains one of the delimiters defined for the connection string.
(Inherited from ConnectionStringParser)
Public propertyExplicitlySpecifyDefaults Gets or sets the flag that determines whether to explicitly specify parameter values that match their defaults when serializing settings to a connection string.
(Inherited from ConnectionStringParser)
Public propertyKeyValueDelimiter Gets or sets the key-value delimiter used to separate keys from values in the connection string.
(Inherited from ConnectionStringParser)
Public propertyParameterDelimiter Gets or sets the parameter delimiter used to separate key-value pairs in the connection string.
(Inherited from ConnectionStringParser)
Public propertySerializeUnspecifiedProperties Redefined to throw an exception. This property has no meaning when property serialization is determined by the existence of the typed parameter.
(Inherited from ConnectionStringParserTParameterAttribute)
Public propertyStartValueDelimiter Gets or sets the start value delimiter used to denote the start of a value in the cases where the value contains one of the delimiters defined for the connection string.
(Inherited from ConnectionStringParser)
Top
Methods
 NameDescription
Public methodComposeConnectionString Serializes the given settingsObject into a connection string.
(Overrides ConnectionStringParserComposeConnectionString(Object))
Protected methodConvertToPropertyType Converts the given string value to the type of the given property.
(Inherited from ConnectionStringParser)
Protected methodConvertToString Converts the given object to a string.
(Inherited from ConnectionStringParser)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodGetConnectionStringProperties Gets the set of properties which are part of the connection string.
(Inherited from ConnectionStringParserTParameterAttribute)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParseConnectionString Deserializes the connection string parameters into the given settingsObject.
(Overrides ConnectionStringParserParseConnectionString(String, Object))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also