C# Класс OpenHome.Net.Core.PropertyInt

Integer type property. Only intended for use by auto-generated proxies and providers.
Наследование: Property
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PropertyInt ( ParameterInt aParameter, bool aOwnsNativeProperty = false ) : System

Constructor suitable for use by clients of the device stack

PropertyInt ( String aName, System aValueChanged ) : System

Constructor suitable for use by clients of the control point stack

SetValue ( int aValue ) : bool

Set the value of the property

Value ( ) : int

Query the value of the property

Приватные методы

Метод Описание
ServicePropertyCreateIntCp ( IntPtr aName, Callback aCallback, IntPtr aPtr ) : IntPtr
ServicePropertyCreateIntDv ( IntPtr aParameterHandle ) : IntPtr
ServicePropertySetValueInt ( IntPtr aHandle, int aValue ) : uint
ServicePropertyValueInt ( IntPtr aHandle, int &aValue ) : int

Описание методов

PropertyInt() публичный Метод

Constructor suitable for use by clients of the device stack
public PropertyInt ( ParameterInt aParameter, bool aOwnsNativeProperty = false ) : System
aParameter ParameterInt Parameter defining the name and any value bounds for the property.
aOwnsNativeProperty bool Whether the managed property owns the underlying native property.
Результат System

PropertyInt() публичный Метод

Constructor suitable for use by clients of the control point stack
public PropertyInt ( String aName, System aValueChanged ) : System
aName String Property name
aValueChanged System Action to run when the property's value changes
Результат System

SetValue() публичный Метод

Set the value of the property
public SetValue ( int aValue ) : bool
aValue int New value for the property
Результат bool

Value() публичный Метод

Query the value of the property
public Value ( ) : int
Результат int