Class ResourceInterfaces

    Definition

    Namespace:
    Tizen.Network.IoTConnectivity
    Assembly:
    Tizen.Network.IoTConnectivity.dll

    This class contains resource interfaces and provides APIs to manage, add, or remove those interfaces. A resource interface indicates a class or category of resources.

    public class ResourceInterfaces : IEnumerable<string>, IDisposable
    Inheritance
    object
    ResourceInterfaces
    Implements
    IDisposable

    Constructors

    View Source

    ResourceInterfaces()

    Constructor of ResourceInterfaces.

    Declaration
    public ResourceInterfaces()
    Examples
        ResourceInterfaces resourceInterfaces = new ResourceInterfaces();
    See Also
    Add(string)
    Remove(string)
    View Source

    ResourceInterfaces(IEnumerable<string>)

    Constructor of ResourceInterfaces using list of interfaces.

    Declaration
    public ResourceInterfaces(IEnumerable<string> ifaces)
    Parameters
    Type Name Description
    IEnumerable<><string> ifaces

    List of resource interfaces.

    Examples
        ResourceInterfaces resourceInterfaces = new ResourceInterfaces(new List<string>()
            { ResourceInterfaces.LinkInterface, ResourceInterfaces.ReadonlyInterface });

    Fields

    View Source

    BatchInterface

    Batch Interface, which is used to manipulate (GET, PUT, POST, DELETE) on other resource contained in a resource.

    Declaration
    public const string BatchInterface
    Field Value
    Type Description
    string
    View Source

    DefaultInterface

    Default Interface.

    Declaration
    public const string DefaultInterface
    Field Value
    Type Description
    string
    View Source

    GroupInterface

    Group Interface, which is used to manipulate (GET, PUT, POST) a group of remote resources.

    Declaration
    public const string GroupInterface
    Field Value
    Type Description
    string
    View Source

    LinkInterface

    List Links Interface, which is used to list the references to other resources contained in a resource.

    Declaration
    public const string LinkInterface
    Field Value
    Type Description
    string
    View Source

    ReadonlyInterface

    Read-Only Interface, which is used to limit the methods that can be applied to a resource to GET only.

    Declaration
    public const string ReadonlyInterface
    Field Value
    Type Description
    string

    Properties

    View Source

    Count

    Indicates count of interfaces in the list

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Count of interfaces in the list.

    Examples
        ResourceInterfaces resourceInterfaces = new ResourceInterfaces(new List<string>()
            { ResourceInterfaces.LinkInterface, ResourceInterfaces.ReadonlyInterface });
        Console.WriteLine("There are {0} interfaces", resourceInterfaces.Count);

    Methods

    View Source

    Add(string)

    Adds a resource interface into the list.

    Declaration
    public void Add(string item)
    Parameters
    Type Name Description
    string item

    The string data to insert into the resource interfaces.

    Remarks

    item could be a value, such as DefaultInterface.

    Examples
        ResourceInterfaces resourceInterfaces = new ResourceInterfaces();
        resourceInterfaces.Add(ResourceInterfaces.BatchInterface);
    See Also
    Remove(string)
    View Source

    Dispose()

    Releases any unmanaged resources used by this object.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    If true, disposes any disposable objects. If false, does not dispose disposable objects.

    View Source

    ~ResourceInterfaces()

    Destructor of the ResourceInterfaces class.

    Declaration
    protected ~ResourceInterfaces()
    View Source

    GetEnumerator()

    Returns enumerator for the list of interfaces.

    Declaration
    public IEnumerator<string> GetEnumerator()
    Returns
    Type Description
    IEnumerator<><string>

    The enumerator.

    Examples
        ResourceInterfaces resourceInterfaces = new ResourceInterfaces(new List<string>()
            { ResourceInterfaces.LinkInterface, ResourceInterfaces.ReadonlyInterface });
        foreach(string item in resourceInterfaces)
        {
            Console.WriteLine("Interface : {0}", item);
        }
    View Source

    Remove(string)

    Removes a resource interface from the list.

    Declaration
    public void Remove(string item)
    Parameters
    Type Name Description
    string item

    The string data to delete from the resource ifaces.

    Examples
        ResourceInterfaces resourceInterfaces = new ResourceInterfaces(new List<string>(){ ResourceInterfaces.BatchInterface });
        resourceInterfaces.Add(ResourceInterfaces.BatchInterface);
    See Also
    Add(string)

    Implements

    IDisposable

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX