ServiceBase.ServiceMainCallback Method (Int32, IntPtr)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product 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
)

Parameters

argCount
Type: System.Int32

The number of arguments in the argument array.

argPointer
Type: System.IntPtr

An IntPtr structure that points to an array of arguments.

.NET Framework
Available since 2.0
Return to top
Show: