RoleEnvironment::IsAvailable Method

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

Syntax

public:
bool IsAvailable()  

Return value

Type: bool 

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.

Requirements

Header: Declared in RoleEnvironment.h.

Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).

See also

Reference

RoleEnvironment

RoleEnvironment Members