ServiceBaseServiceMainCallback Method
 

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
)
public:
[ComVisibleAttribute(false)]
void ServiceMainCallback(
	int argCount,
	IntPtr argPointer
)
[<ComVisibleAttribute(false)>]
member ServiceMainCallback : 
        argCount:int *
        argPointer:nativeint -> unit
<ComVisibleAttribute(False)>
Public Sub ServiceMainCallback (
	argCount As Integer,
	argPointer As IntPtr
)

Parameters

argCount
Type:

The number of arguments in the argument array.

argPointer
Type:

An IntPtr structure that points to an array of arguments.

.NET Framework
Available since 2.0
Return to top