Interface IUpnpDeviceValidator
Interface for components that check an SsdpDevice object's properties meet the UPnP specification for a particular version.
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public interface IUpnpDeviceValidator
Methods
GetValidationErrors(SsdpDevice)
Returns an enumerable set of strings, each one being a description of an invalid property on the specified device.
Declaration
IEnumerable<string> GetValidationErrors(SsdpDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| SsdpDevice | device | The SsdpDevice to validate. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
GetValidationErrors(SsdpRootDevice)
Returns an enumerable set of strings, each one being a description of an invalid property on the specified root device.
Declaration
IEnumerable<string> GetValidationErrors(SsdpRootDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| SsdpRootDevice | device | The SsdpRootDevice to validate. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
ThrowIfDeviceInvalid(SsdpDevice)
Validates the specified device and throws an System.InvalidOperationException if there are any validation errors.
Declaration
void ThrowIfDeviceInvalid(SsdpDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| SsdpDevice | device |