BncsDatabase.SetValue Method

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS.Core.DriverFramework.Bncs Namespace > BncsDatabase Class > BncsDatabase Methods >

BncsDatabase.SetValue Method

Sets the value at the specified index in the database and publishes a change notification.

Namespace: BNCS.Core.DriverFramework.Bncs
Assembly:  BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)

 

Syntax


public Boolean SetValue(
 uint index,
 string value,
 Enums.BNCSChangeSources changeSource
)

Parameters

index

Type: UInt32
The index in the database where the value should be set.

value

Type: String
The new value to be set. Must not exceed 1024 characters.

changeSource

Type: BNCS.Core.DriverFramework.Models.Enums.BNCSChangeSources
The source of the change. Defaults to Device.

Return Value

Returns true if the value is successfully set and the change notification is published.

 

Exceptions


Exception

Condition

[ArgumentException]

Thrown when the value exceeds 1024 characters.

 

See Also


BncsDatabase Class

BNCS.Core.DriverFramework.Bncs Namespace