共用方式為


ServiceBase.ServiceMainCallback(Int32, IntPtr) 方法

定義

登錄命令處理常式 (Command Handler) 並啟動服務。

public:
 void ServiceMainCallback(int argCount, IntPtr argPointer);
public void ServiceMainCallback (int argCount, IntPtr argPointer);
[System.Runtime.InteropServices.ComVisible(false)]
public void ServiceMainCallback (int argCount, IntPtr argPointer);
member this.ServiceMainCallback : int * nativeint -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.ServiceMainCallback : int * nativeint -> unit
Public Sub ServiceMainCallback (argCount As Integer, argPointer As IntPtr)

參數

argCount
Int32

引數陣列中的引數數目。

argPointer
IntPtr

nativeint

指向引數陣列的 IntPtr 結構。

屬性

適用於