ServiceBase.ServiceMainCallback(Int32, IntPtr) 方法

定义

注册命令处理程序并启动服务。

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 结构。

属性

适用于