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)

Syntax

public static bool IsAvailable { get; }
public:
property bool IsAvailable {
    static bool get();
}
static member IsAvailable : bool with get
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.

Remarks

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

See Also

RoleEnvironment Class
Microsoft.WindowsAzure.ServiceRuntime Namespace

Return to top