Method TryToOpenDevice
TryToOpenDevice(IFluentLog, FileAccess, Predicate<DeviceDescriptor>, out DeviceDescriptor, out SafeFileHandle)
Declaration
public static 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 |