C-DEngine 5.105

ICommonDisco..::..RegisterDeviceWithServer Method

Registers the current device with a C-DEngine UPnP subsystem at the given Uri

Namespace:  nsCDEngine.Discovery
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


void RegisterDeviceWithServer(
	Uri pTargetServer,
	Action<string, TheUPnPDeviceInfo> pCallback
)
Sub RegisterDeviceWithServer ( _
	pTargetServer As Uri, _
	pCallback As Action(Of String, TheUPnPDeviceInfo) _
)
void RegisterDeviceWithServer(
	Uri^ pTargetServer, 
	Action<String^, TheUPnPDeviceInfo^>^ pCallback
)

Parameters

pTargetServer
Type: Uri
Uri of the target node with a C-DEngine UPnP subsystem
pCallback
Type: Action<(Of <(<'String, TheUPnPDeviceInfo>)>)>
If this callback is specified, the caller can check if the registration was successful (OK=Was successful; FAILED=registeration failed). If it was successful, TheUPnPDeviceInfo of the Server is returned in the callback