C# Класс MonoLibUsb.MonoUsbSessionHandle

Class representing a Libusb-1.0 session session handle. Session handled are wrapped in a System.Runtime.ConstrainedExecution.CriticalFinalizerObject.

The concept of individual Libusb-1.0 sessions allows for your program to use two libraries (or dynamically load two modules) which both independently use libusb. This will prevent interference between the individual libusb users - for example MonoUsbApi.SetDebug will not affect the other user of the library, and SafeHandle.Close will not destroy resources that the other user is still using.

Sessions are created when a new MonoUsbSessionHandle instance is created and destroyed through SafeHandle.Close.

A MonoUsbSessionHandle instance must be created before calling any other Libusb-1.0 API function.

Session handles are equivalent to a libusb_context.

Наследование: LibUsbDotNet.Main.SafeContextHandle
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MonoUsbSessionHandle ( ) : System

Creates and initialize a Libusb-1.0 USB session handle.

A MonoUsbSessionHandle instance must be created before calling any other Libusb-1.0 API function.

Защищенные методы

Метод Описание
ReleaseHandle ( ) : bool

Описание методов

MonoUsbSessionHandle() публичный Метод

Creates and initialize a Libusb-1.0 USB session handle.

A MonoUsbSessionHandle instance must be created before calling any other Libusb-1.0 API function.

public MonoUsbSessionHandle ( ) : System
Результат System

ReleaseHandle() защищенный Метод

protected ReleaseHandle ( ) : bool
Результат bool