Execute Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Executes a transaction by scheduling the transfer of the data involved.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Function Execute ( _
xActions As I2CDevice.I2CTransaction(), _
timeout As Integer _
) As Integer
public int Execute(
I2CDevice.I2CTransaction[] xActions,
int timeout
)
public:
int Execute(
array<I2CDevice::I2CTransaction^>^ xActions,
int timeout
)
member Execute :
xActions:I2CDevice.I2CTransaction[] *
timeout:int -> int
public function Execute(
xActions : I2CDevice..::..I2CTransaction[],
timeout : int
) : int
Parameters
- xActions
Type: array<Microsoft.SPOT.Hardware. . :: . .I2CDevice. . :: . .I2CTransaction> [] () [] []
The object that contains the transaction data.
- timeout
Type: System. . :: . .Int32
The amount of time the system will wait before resuming execution of the transaction.
Return Value
Type: System. . :: . .Int32
The number of bytes of data transferred in the transaction.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.