Export (0) Print
Expand All

RoleInstanceStatusCheckEventArgs.Status Property

Updated: October 18, 2011

Gets the status of the role instance.

Namespace: Microsoft.WindowsAzure.ServiceRuntime
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)

public RoleInstanceStatus Status { get; }

Property Value

Type: Microsoft.WindowsAzure.ServiceRuntime.RoleInstanceStatus

An instance of RoleInstanceStatus.

The following code example shows how to retrieve the status of the role instance:


public override bool OnStart()
{
   RoleEnvironment.StatusCheck += RoleEnvironmentStatusCheck;
  
   return base.OnStart();
} 

private void RoleEnvironmentStatusCheck(object sender, RoleInstanceStatusCheckEventArgs e)
{
   Trace.WriteLine("The status of the role instance:" + e.Status, "Information");
}


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft