C# Class OpenHome.Net.Core.PropertyBool

Boolean type property. Only intended for use by auto-generated proxies and providers.
Inheritance: Property
显示文件 Open project: openhome/ohNet Class Usage Examples

Public Methods

Method Description
PropertyBool ( ParameterBool aParameter, bool aOwnsNativeProperty = false ) : System

Constructor suitable for use by clients of the device stack

PropertyBool ( String aName, System aValueChanged ) : System

Constructor suitable for use by clients of the control point stack

SetValue ( bool aValue ) : bool

Set the value of the property

Value ( ) : bool

Query the value of the property

Private Methods

Method Description
ServicePropertyCreateBoolCp ( IntPtr aName, Callback aCallback, IntPtr aPtr ) : IntPtr
ServicePropertyCreateBoolDv ( IntPtr aParameterHandle ) : IntPtr
ServicePropertySetValueBool ( IntPtr aHandle, uint aValue ) : uint
ServicePropertyValueBool ( IntPtr aHandle, uint &aValue ) : int

Method Details

PropertyBool() public method

Constructor suitable for use by clients of the device stack
public PropertyBool ( ParameterBool aParameter, bool aOwnsNativeProperty = false ) : System
aParameter ParameterBool Parameter defining the name for the property.
aOwnsNativeProperty bool Whether the managed property owns the underlying native property.
return System

PropertyBool() public method

Constructor suitable for use by clients of the control point stack
public PropertyBool ( String aName, System aValueChanged ) : System
aName String Property name
aValueChanged System Action to run when the property's value changes
return System

SetValue() public method

Set the value of the property
public SetValue ( bool aValue ) : bool
aValue bool New value for the property
return bool

Value() public method

Query the value of the property
public Value ( ) : bool
return bool