0 out of 3 rated this helpful - Rate this topic

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)
'Usage
Dim value As Boolean

value = RoleEnvironment.IsAvailable

public static bool IsAvailable { get; }
/** @property */
public static boolean get_IsAvailable ()

public static function get IsAvailable () : boolean

Property Value

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.


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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ