Click or drag to resize

ConnectionStringParser Class

Parses connection strings based on a settings object whose properties are annotated with the SerializeSettingAttribute.
Inheritance Hierarchy
SystemObject
  GSF.ConfigurationConnectionStringParser
    GSF.ConfigurationConnectionStringParserTParameterAttribute

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public class ConnectionStringParser
View Source

The ConnectionStringParser type exposes the following members.

Constructors
 NameDescription
Public methodConnectionStringParser Creates a new instance of the ConnectionStringParser 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.
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.
Public propertyKeyValueDelimiter Gets or sets the key-value delimiter used to separate keys from values in the connection string.
Public propertyParameterDelimiter Gets or sets the parameter delimiter used to separate key-value pairs in the connection string.
Public propertySerializeUnspecifiedProperties Gets or sets the flag that determines whether to include properties which are not annotated with the SerializeSettingAttribute in the connection string.
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.
Top
Methods
 NameDescription
Public methodComposeConnectionString Serializes the given settingsObject into a connection string.
Protected methodConvertToPropertyType Converts the given string value to the type of the given property.
Protected methodConvertToString Converts the given object to a string.
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.
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.
Public methodStatic memberToConnectionString Converts XML to a connection string.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberToXML Converts a connection string to XML.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultEndValueDelimiter Default value for the EndValueDelimiter property.
Public fieldStatic memberDefaultExplicitlySpecifyDefaults Default value for the ExplicitlySpecifyDefaults property.
Public fieldStatic memberDefaultKeyValueDelimiter Default value for the KeyValueDelimiter property.
Public fieldStatic memberDefaultParameterDelimiter Default value for the ParameterDelimiter property.
Public fieldStatic memberDefaultSerializeUnspecifiedProperties Default value for the SerializeUnspecifiedProperties property.
Public fieldStatic memberDefaultStartValueDelimiter Default value for the StartValueDelimiter property.
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