Click or drag to resize

ConnectionStringParserTParameterAttribute Class

Parses connection strings based on a settings object whose properties are annotated with TParameterAttribute.
Inheritance Hierarchy

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public class ConnectionStringParser<TParameterAttribute> : ConnectionStringParser
where TParameterAttribute : 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.

The ConnectionStringParserTParameterAttribute type exposes the following members.

Constructors
 NameDescription
Public methodConnectionStringParserTParameterAttributeInitializes a new instance of the ConnectionStringParserTParameterAttribute 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.
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)
Public propertyStatic memberTypeRegistry Gets or sets TypeRegistry instance used for evaluating encountered instances of the DefaultValueExpressionAttribute on modeled connection string values that are marked with TParameterAttribute.
Top
Methods
 NameDescription
Public methodComposeConnectionString Serializes the given settingsObject into a connection string.
(Inherited from ConnectionStringParser)
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.
(Overrides ConnectionStringParserGetConnectionStringProperties(Type))
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.
(Inherited from ConnectionStringParser)
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