EthernetAutodiscoverySetHostNameOnSpecifiedDevice Method |
Function to set the hostname on the specified device
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic 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
EthernetAutodiscoveryeAutoDiscoveryErrorseAutoDiscoveryErrors enum indicating failure or success
Exceptions
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