FindFirstDevice Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Retrieves the first device.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware.OneWire (in Microsoft.SPOT.Hardware.OneWire.dll)
Syntax
'Declaration
Public Function FindFirstDevice ( _
performResetBeforeSearch As Boolean, _
searchWithAlarmCommand As Boolean _
) As Integer
public int FindFirstDevice(
bool performResetBeforeSearch,
bool searchWithAlarmCommand
)
public:
int FindFirstDevice(
bool performResetBeforeSearch,
bool searchWithAlarmCommand
)
member FindFirstDevice :
performResetBeforeSearch:bool *
searchWithAlarmCommand:bool -> int
public function FindFirstDevice(
performResetBeforeSearch : boolean,
searchWithAlarmCommand : boolean
) : int
Parameters
- performResetBeforeSearch
Type: System. . :: . .Boolean
true to reset before search.
- searchWithAlarmCommand
Type: System. . :: . .Boolean
true to only search alarming devices.
Return Value
Type: System. . :: . .Int32
The port number.
.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.