C# Class MetroTrilithon.Desktop.ApplicationInstance

アプリケーションの多重起動の検知と、起動しているインスタンス間でのメッセージの送受信をサポートします。
Inheritance: IDisposable
Exibir arquivo Open project: Grabacr07/MetroTrilithon Class Usage Examples

Public Methods

Method Description
ApplicationInstance ( ) : System
ApplicationInstance ( Assembly targetAssembly ) : System
Dispose ( ) : void
SendCommandLineArgs ( string commandLineArgs ) : void

既に存在するインスタンスに対して、現在のプロセスのコマンド ライン引数を送信します。

Private Methods

Method Description
OnMessageReceived ( string commandLineArgs ) : void

CommandLineArgsReceived イベントを発生させます。

Method Details

ApplicationInstance() public method

public ApplicationInstance ( ) : System
return System

ApplicationInstance() public method

public ApplicationInstance ( Assembly targetAssembly ) : System
targetAssembly System.Reflection.Assembly
return System

Dispose() public method

public Dispose ( ) : void
return void

SendCommandLineArgs() public method

既に存在するインスタンスに対して、現在のプロセスのコマンド ライン引数を送信します。
public SendCommandLineArgs ( string commandLineArgs ) : void
commandLineArgs string 現在のプロセスのコマンド ライン引数。
return void