Export (0) Print
Expand All

ServiceBase.ServiceMainCallback Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Registers the command handler and starts the service.

Namespace: System.ServiceProcess
Assembly: System.ServiceProcess (in system.serviceprocess.dll)

[ComVisibleAttribute(false)] 
public void ServiceMainCallback (
	int argCount,
	IntPtr argPointer
)
/** @attribute ComVisibleAttribute(false) */ 
public void ServiceMainCallback (
	int argCount, 
	IntPtr argPointer
)
ComVisibleAttribute(false) 
public function ServiceMainCallback (
	argCount : int, 
	argPointer : IntPtr
)
Not applicable.

Parameters

argCount

The number of arguments in the argument array.

argPointer

An IntPtr structure that points to an array of arguments.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft