Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
User Action:

RoleInstance Class

Represents an instance of a role.

Namespace: Microsoft.WindowsAzure.ServiceRuntime
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
Public MustInherit Class RoleInstance
J#

A hosted service in Windows Azure can be defined to contain web roles, worker roles, and VM roles. A role is a component of an application that performs specific functionality. A role instance is a running copy of the role in Windows Azure or the Windows Azure Compute Emulator. Roles are defined in the service model for the hosted service. For more information, see Setting Up a Hosted Service for Windows Azure.

The following code example shows how to retrieve information about role instances:

No code example is currently available or this language may not be supported.

System.Object
  Microsoft.WindowsAzure.ServiceRuntime.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 Vista, Windows 7 and Windows Server 2008

Target Platforms