| 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
Public Overridable Function TryGet(Of T As IConvertible) (
key As String,
<OutAttribute> ByRef value As T
) As Boolean
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:
Booleantrue if the specified key was found; otherwise,
false.
See Also