DevForce Help Reference
GetDefaultServiceKey Method


Return the default ServiceKey.
Syntax
'Declaration
 
Public Function GetDefaultServiceKey() As ServiceKeyElement
'Usage
 
Dim instance As ObjectServerElement
Dim value As ServiceKeyElement
 
value = instance.GetDefaultServiceKey()
public ServiceKeyElement GetDefaultServiceKey()
Exceptions
ExceptionDescription
System.InvalidOperationExceptionThrown if a default key cannot be found
Remarks
The default key search is as follows: 1) if the RemoteBaseUrl and other properties on the ObjectServer are set then a ServiceKey is built from this information and returned, 2) If a service key named "default" is found it will be returned; otherwise the first key in the collection is returned.
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

ObjectServerElement Class
ObjectServerElement Members

Send Feedback