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
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
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