C# 클래스 Zombie.ConnectionMgr

The ConnectionMgr class is used to configure the application identity and as a source of SDK connections, which require the application identity
파일 보기 프로젝트 열기: pkpjpm/Zombie 1 사용 예제들

공개 메소드들

메소드 설명
GetConnection ( ) : SDKConnection

Creates an SDK connection using the current default connection configuration

GetConnection ( ConnectionConfig config ) : SDKConnection

Creates and SDK connection using the specified connection configuration

GetTestConnection ( Interop.QBFC12 sessionMgr ) : SDKConnection
InitDesktop ( string applicationName ) : void

A simple method to initialize an application that will connect to the current QuickBooks desktop edition file.

SetApplicationIdentity ( ApplicationIdentity id ) : void
ShutDown ( ) : void

Closes all connections and ends the session. If you wrap all of your connections with the using statement, you won't need this. But if you're getting creative with connection management, this method should clean things up if it is called during application shutdown.

비공개 메소드들

메소드 설명
ConnectionClosed ( SDKConnection cn ) : void

메소드 상세

GetConnection() 공개 정적인 메소드

Creates an SDK connection using the current default connection configuration
public static GetConnection ( ) : SDKConnection
리턴 SDKConnection

GetConnection() 공개 정적인 메소드

Creates and SDK connection using the specified connection configuration
public static GetConnection ( ConnectionConfig config ) : SDKConnection
config ConnectionConfig The connection configuration to use
리턴 SDKConnection

GetTestConnection() 공개 정적인 메소드

public static GetTestConnection ( Interop.QBFC12 sessionMgr ) : SDKConnection
sessionMgr Interop.QBFC12
리턴 SDKConnection

InitDesktop() 공개 정적인 메소드

A simple method to initialize an application that will connect to the current QuickBooks desktop edition file.
public static InitDesktop ( string applicationName ) : void
applicationName string The name that identifies the application to QuickBooks
리턴 void

SetApplicationIdentity() 공개 정적인 메소드

public static SetApplicationIdentity ( ApplicationIdentity id ) : void
id System.ApplicationIdentity
리턴 void

ShutDown() 공개 정적인 메소드

Closes all connections and ends the session. If you wrap all of your connections with the using statement, you won't need this. But if you're getting creative with connection management, this method should clean things up if it is called during application shutdown.
public static ShutDown ( ) : void
리턴 void