|
<< Click to Display Table of Contents >> Navigation: Reference > BNCS.Core.DriverFramework.Bncs Namespace > BncsInfodriver Class > BncsInfodriver Methods > BncsInfodriver.SetValue Method |
Sets the value of a specified slot index in the infodriver.
Namespace: BNCS.Core.DriverFramework.Bncs
Assembly: BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)
public bool SetValue(
uint index,
string value,
bool preApproved,
Enums.BNCSChangeSources changeSource
)
index
Type: UInt32
The index of the slot to set the value for.
value
Type: String
The new value to set for the specified slot index.
preApproved
Type: Boolean
Indicates whether the change is pre-approved. Default is true.
changeSource
Type: BNCS.Core.DriverFramework.Models.Enums.BNCSChangeSources
The source of the change. Default is BNCSChangeSources.Device.
Returns true if the value was successfully set; otherwise, an exception is thrown.
Condition |
|
|---|---|
Thrown when the value exceeds 1024 characters. |
|
Thrown when the specified slot index is not initialized. |
BNCS.Core.DriverFramework.Bncs Namespace