Method TryToOpenDevice
TryToOpenDevice(IFluentLog, FileAccess, Predicate<DeviceDescriptor>, out DeviceDescriptor, out SafeFileHandle)
Declaration
bool TryToOpenDevice(IFluentLog log, FileAccess requiredAccess, Predicate<DeviceDescriptor> condition, out DeviceDescriptor deviceDescriptor, out SafeFileHandle deviceHandle)
Parameters
Type | Name | Description |
---|---|---|
IFluentLog | log | |
FileAccess | requiredAccess | |
Predicate<DeviceDescriptor> | condition | |
DeviceDescriptor | deviceDescriptor | |
SafeFileHandle | deviceHandle |
Returns
Type | Description |
---|---|
bool |