Export (0) Print
Expand All

ServiceBase.ServiceMainCallback Method

Note: This method is new in the .NET Framework version 2.0.

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
)

Parameters

argCount

The number of arguments in the argument array.

argPointer

An IntPtr structure that points to an array of arguments.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft