Gets a
RoleInstance object representing the role instance in which this code is currently executing.
Namespace: Microsoft.WindowsAzure.ServiceRuntime
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in microsoft.windowsazure.serviceruntime.dll)

Usage

Syntax
Public Shared ReadOnly Property CurrentRoleInstance As RoleInstance
public static RoleInstance CurrentRoleInstance { get; }
public:
static property RoleInstance^ CurrentRoleInstance {
RoleInstance^ get ();
}
/** @property */
public static RoleInstance get_CurrentRoleInstance ()
public static function get CurrentRoleInstance () : RoleInstance
Property Value
Returns
RoleInstance.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008, and Windows 2000
Target Platforms

See Also