RoleEntryPoint.Initialize Method
Initializes and starts the role.
Namespace: Microsoft.ServiceHosting.ServiceRuntime
Assembly: Microsoft.ServiceHosting.ServiceRuntime (in microsoft.servicehosting.serviceruntime.dll)
Usage
Dim instance As RoleEntryPoint
Dim returnValue As Boolean
returnValue = instance.Initialize
Syntax
'Declaration
Public Overridable Function Initialize As Boolean
public virtual bool Initialize ()
public:
virtual bool Initialize ()
public boolean Initialize ()
public function Initialize () : boolean
Return Value
True/False
Remarks
The fabric calls the Intialize method to start the role. If the fabric is able to start the role successfully, Intialize returns True. If the fabric is not able to start the role, Initialize returns False.
The Initialize method calls the Start method to start the role, and waits for the Start method to return. When the Start method returns, the role is restarted.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008, and Windows 2000
Target Platforms
See Also
Reference
RoleEntryPoint Class
RoleEntryPoint Members
Microsoft.ServiceHosting.ServiceRuntime Namespace