RoleInstanceStatusCheckEventArgs.Status Property
Gets the status of the role instance.
Namespace: Microsoft.WindowsAzure.ServiceRuntime
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
Syntax
public RoleInstanceStatus Status { get; internal set; }
public:
property RoleInstanceStatus Status {
RoleInstanceStatus get();
internal: void set(RoleInstanceStatus value);
}
member Status : RoleInstanceStatus with get, internal set
Public Property Status As RoleInstanceStatus
Get
Friend Set
End Property
Property Value
Type: Microsoft.WindowsAzure.ServiceRuntime.RoleInstanceStatus
Type: Microsoft.WindowsAzure.ServiceRuntime.RoleInstanceStatus
An instance of RoleInstanceStatus.
Remarks
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");
}
See Also
RoleEnvironment
RoleInstanceStatusCheckEventArgs Class
Microsoft.WindowsAzure.ServiceRuntime Namespace
Return to top