RoleInstanceStatusCheckEventArgs::Status Property
Gets the status of the role instance.
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
public: property RoleInstanceStatus Status { RoleInstanceStatus get(); internal: void set(RoleInstanceStatus value); }
Property Value
Type: Microsoft.WindowsAzure.ServiceRuntime::RoleInstanceStatusType: 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"); }
Show: