SALES: 1-800-867-1380

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)

property bool IsAvailable {
	static bool get();

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2016 Microsoft