Class SsdpService
Definition
- Namespace:
- Tizen.Network.Nsd
- Assembly:
- Tizen.Network.Nsd.dll
- API Level:
- 4
This class is used for managing the local service registration and its properties using SSDP.
C#Copypublic class SsdpService : object, INsdService, IDisposable
- Inheritance
-
SsdpService
- Implements
-
IDisposable
Constructors
SsdpService(String)
The constructor to create the SsdpService instance that sets the target to a given value.
Declaration
C#Copypublic SsdpService(string target)
Parameters
Type | Name | Description |
---|---|---|
String | target | The SSDP local service's target. It may be a device type or a service type. |
API Level: 4
Feature: http://tizen.org/feature/network.service_discovery.ssdp
Properties
Declaration
C#Copypublic string Target { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
It may be a device type or a service type specified in the UPnP forum (http://upnp.org). In case of an error, null will be returned.
API Level: 4
Declaration
C#Copypublic string Url { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Set the URL for only an unregistered service created locally. If the service is already registered, the URL will not be set. In case of an error, null will be returned during get and exception will be thrown during set.
API Level: 4
Feature: http://tizen.org/feature/network.service_discovery.ssdp
Declaration
C#Copypublic string Usn { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Set the USN for only an unregistered service created locally. If the service is already registered, the USN will not be set. In case of an error, null will be returned during get and exception will be thrown during set.
API Level: 4
Feature: http://tizen.org/feature/network.service_discovery.ssdp
Methods
Declaration
C#Copypublic void DeregisterService()
Remarks
A local service registered using RegisterService() must be passed.
API Level: 4
Feature: http://tizen.org/feature/network.service_discovery.ssdp
Declaration
C#Copypublic void Dispose()
API Level: 4
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void RegisterService()
Remarks
A service created locally must be passed. URL and USN of the service must be set before the RegisterService is called.