Click to Rate and Give Feedback
MSDN
MSDN Library
Online Services
Windows Azure SDK
 RoleEnvironment.CurrentRoleInstance...
Collapse All/Expand All Collapse All
RoleEnvironment.CurrentRoleInstance Property
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)
Dim value As RoleInstance

value = RoleEnvironment.CurrentRoleInstance
Visual Basic
Public Shared ReadOnly Property CurrentRoleInstance As RoleInstance
C#
public static RoleInstance CurrentRoleInstance { get; }
C++
public:
static property RoleInstance^ CurrentRoleInstance {
    RoleInstance^ get ();
}
J#
/** @property */
public static RoleInstance get_CurrentRoleInstance ()
JScript
public static function get CurrentRoleInstance () : RoleInstance

Property Value

Returns RoleInstance.
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 XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008, and Windows 2000

Target Platforms

© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker