Samraksh eMote .NOW
Write(UInt16[],Int32,Int32) Method
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C# Language Filter: C++/CLI
Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++/CLI

Samraksh.eMote.NonVolatileMemory Namespace > DataReference Class > Write Method : Write(UInt16[],Int32,Int32) Method

Array to write
Offset from start of DataStore allocation to write to, and not an offset from start of data array.
Count of data to be written to DataStore
Write a ushsort (UInt16) array into DataStore, specifying the amount to write and the offset from the start of the record.
Syntax

- Visual Basic
- C#
- C++/CLI

    'Declaration

    Public Overloads Function Write( _
       ByVal data() As UShort, _
       ByVal offset As Integer, _
       ByVal numData As Integer _
    ) As DataStoreReturnStatus

    'Usage

    Dim instance As DataReference
    Dim data() As UShort
    Dim offset As Integer
    Dim numData As Integer
    Dim value As DataStoreReturnStatus

    value = instance.Write(data, offset, numData)

    public DataStoreReturnStatus Write(
       ushort[] data,
       int offset,
       int numData
    )

    public:
    DataStoreReturnStatus Write(
       array<ushort>^ data,
       int offset,
       int numData
    )

#### Parameters

data
  Array to write
offset
  Offset from start of DataStore allocation to write to, and not an offset from start of data array.
numData
  Count of data to be written to DataStore

#### Return Value

Success / failure status
Exceptions

Exception | Description
--- | ---
DataStore Exception | Method invocation has an invalid argument

Requirements

Target Platforms: eMote .NOW

See Also

#### Reference

DataReference Class
DataReference Members
Overload List

Send Feedback