Show / Hide Table of Contents

    Class DnssdBrowser

    Definition

    Namespace:
    Tizen.Network.Nsd
    Assembly:
    Tizen.Network.Nsd.dll
    API Level:
    4

    This class is used for managing the network service discovery using DNS-SD.

    public class DnssdBrowser : INsdBrowser
    Inheritance
    Object
    DnssdBrowser
    Implements
    INsdBrowser

    Constructors

    View Source

    DnssdBrowser(String)

    A public constructor for the DnssdBrowser class to create a DnssdBrowser instance for the given service type.

    Declaration
    public DnssdBrowser(string serviceType)
    Parameters
    Type Name Description
    String serviceType

    The DNS-SD service type.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the serviceType is null.

    NotSupportedException

    Thrown when DNS-SD is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/network.service_discovery.dnssd

    Methods

    View Source

    StartDiscovery()

    Starts browsing the DNS-SD remote service.

    Declaration
    public void StartDiscovery()
    Remarks

    If there are any services available, the ServiceFound event will be invoked. The application will keep browsing for the available or unavailable services until it calls StopDiscovery().

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when any other error occurred.

    NotSupportedException

    Thrown when DNS-SD is not supported.

    UnauthorizedAccessException

    Thrown when the permission is denied.

    API Level: 4
    Privilege Level: public
    Privilege: http://tizen.org/privilege/internet
    Feature: http://tizen.org/feature/network.service_discovery.dnssd
    View Source

    StopDiscovery()

    Stops browsing the DNS-SD remote service.

    Declaration
    public void StopDiscovery()
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when any other error occurred.

    NotSupportedException

    Thrown when DNS-SD is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/network.service_discovery.dnssd

    Events

    View Source

    ServiceFound

    This event is raised when a DNS-SD service is found during the service discovery.

    Declaration
    public event EventHandler<DnssdServiceFoundEventArgs> ServiceFound
    Event Type
    Type Description
    EventHandler<DnssdServiceFoundEventArgs>
    API Level: 4

    Implements

    INsdBrowser
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX