ConnectionParameterExtensionsGetConnectionParameters(Type) Method

Gets connection parameters from a specified type, i.e., set of new ConnectionParameter instances derived from properties marked with ConnectionStringParameterAttribute.

Definition

Namespace: Gemstone.Timeseries.Adapters
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.136 -- Release Build+045677775a56d15698be6ced5ce5213063e47102
public static IEnumerable<ConnectionParameter> GetConnectionParameters(
	this Type type
)

Parameters

type  Type
Type to get connection parameters from.

Return Value

IEnumerableConnectionParameter
Collection of connection parameters for the specified type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Only public, instance properties are considered for returned parameter list. The DefaultValue will be populated with the configured default value of the property while the Value remains unassigned. Use ApplyConnectionString(IEnumerableConnectionParameter, String) or ApplySettings(IEnumerableConnectionParameter, DictionaryString, String) to assign values from a connection string or settings dictionary, respectively.

Note that the AdapterCache automatically loads and caches adapter types along with their connection parameters, so this method is not typically directly used.

See Also