Click or drag to resize

ConfigurationManagerTryGetT Method

Attempts to get the value associated with the specified key.

Namespace:  Dynamicweb.Configuration
Assembly:  Dynamicweb.Configuration (in Dynamicweb.Configuration.dll) Version: 4.1.3
Syntax
public virtual bool TryGet<T>(
	string key,
	out T value
)
where T : IConvertible

Parameters

key
Type: SystemString
The key that represents the value, e.g. "/Globalsettings/System/Database/Trusted"
value
Type: T
When this method returns, contains the value associated with the specified key, or the default value of the type if the key was not found.

Type Parameters

T
The type of the value.

Return Value

Type: Boolean
true if the specified key was found; otherwise, false.
See Also