IdeaBlade.Core Assembly > IdeaBlade.Core.Configuration Namespace > ObjectServerElement Class : GetServiceKey Method |
'Declaration
Public Function GetServiceKey( _ ByVal name As String, _ Optional ByVal throwIfNotFound As Boolean _ ) As ServiceKeyElement
'Usage
Dim instance As ObjectServerElement Dim name As String Dim throwIfNotFound As Boolean Dim value As ServiceKeyElement value = instance.GetServiceKey(name, throwIfNotFound)
public ServiceKeyElement GetServiceKey( string name, bool throwIfNotFound )
Exception | Description |
---|---|
System.InvalidOperationException | Thrown if no service keys are defined, or the key is not found |
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