JAMS Developer Guide
Get<T> Method (Cfg)


MVPSI.JAMS Namespace > Cfg Class : Get<T> Method
The name of the configuration element.
The name of the configuration setting.
The default value to return if the setting wasn't found.
The JAMS Server to load settings from.
Returns a single configuration value.
Syntax
'Declaration
 
Public Shared Function Get(Of T)( _
   ByVal elementName As System.String, _
   ByVal propertyName As System.String, _
   ByVal defaultValue As T, _
   ByVal server As Server _
) As T
'Usage
 
Dim elementName As System.String
Dim propertyName As System.String
Dim defaultValue As T
Dim server As Server
Dim value As T
 
value = Cfg.Get(Of T)(elementName, propertyName, defaultValue, server)
public static T Get<T>( 
   System.string elementName,
   System.string propertyName,
   T defaultValue,
   Server server
)

Parameters

elementName
The name of the configuration element.
propertyName
The name of the configuration setting.
defaultValue
The default value to return if the setting wasn't found.
server
The JAMS Server to load settings from.

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cfg Class
Cfg Members