Duration (Pacific Standard Time):
To (Pacific Standard Time):
  • None
User Action:
  • None

RoleEnvironment.IsAvailable Property


Indicates whether the role instance is running in the Windows Azure environment.

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

Public Shared ReadOnly Property IsAvailable As Boolean

Property Value

Type: System.Boolean

Type: System.Boolean

true if the role instance is running in Windows Azure; otherwise, false.

If IsAvailable returns false all the other properties, methods and events of RoleEnvironment will throw exceptions.

Return to top