Show / Hide Table of Contents

Interface ICapability

Interface to expose capability discovery.

Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public interface ICapability

Methods

View Source

GetCapabilityInterface<T>()

Returns the interface requested for this object.

Declaration
T GetCapabilityInterface<T>()
    where T : class
Returns
Type Description
T

The interface if it is implemented or null if not implemented.

Type Parameters
Name Description
T

The interface that is being requested.

View Source

HasCapabilityInterface(Type)

Determines if this object implements the specified interface type.

Declaration
bool HasCapabilityInterface(Type type)
Parameters
Type Name Description
System.Type type

The type of interface to check.

Returns
Type Description
System.Boolean

A value indicating whether the object implements the interface or not.

Extension Methods

ICapabilityExtensions.IsCapable(ICapability, Type[])
ICapabilityExtensions.HasCapabilityInterface<T>(ICapability)
  • View Source
In This Article
Back to top Generated by DocFX