Click or drag to resize

EthernetAutodiscoverySetHostNameOnSpecifiedDevice Method

Function to set the hostname on the specified device

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static EthernetAutodiscoveryeAutoDiscoveryErrors SetHostNameOnSpecifiedDevice(
	EthernetAutodiscoveryAutoDiscoveredDeviceElement discoveredElement,
	string newHostNameForSpecifiedDevice
)

Parameters

discoveredElement  EthernetAutodiscoveryAutoDiscoveredDeviceElement
Specific device within the discovered list
newHostNameForSpecifiedDevice  String
New hostname to set on the device

Return Value

EthernetAutodiscoveryeAutoDiscoveryErrors
eAutoDiscoveryErrors enum indicating failure or success
Exceptions
ExceptionCondition
NotSupportedExceptionEthernet autodiscovery is not supported on this platform. Use DevicePlatform to determine the running platform type.
Remarks
The device might not accept the new hostname until a reboot. Invoke the "Query" function to populate the discovered element list.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also