C# Class MetroTrilithon.Desktop.ApplicationInstance

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

Méthodes publiques

Méthode Description
ApplicationInstance ( ) : System
ApplicationInstance ( Assembly targetAssembly ) : System
Dispose ( ) : void
SendCommandLineArgs ( string commandLineArgs ) : void

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

Private Methods

Méthode Description
OnMessageReceived ( string commandLineArgs ) : void

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

Method Details

ApplicationInstance() public méthode

public ApplicationInstance ( ) : System
Résultat System

ApplicationInstance() public méthode

public ApplicationInstance ( Assembly targetAssembly ) : System
targetAssembly System.Reflection.Assembly
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

SendCommandLineArgs() public méthode

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