Interface ICapability
Interface to expose capability discovery.
Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public interface ICapability
Methods
View SourceGetCapabilityInterface<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. |
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. |