Gets the set of Role objects defined for the hosted service.
Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
Public Shared ReadOnly Property Roles As IDictionary(Of String, Role)
Return to top
Roles are defined in the ServiceDefinition.csdef file. For more information about defining roles for a hosted service, see Setting Up a Hosted Service for Windows Azure.
The following code example shows how to obtain the role instance IDs for defined roles:
No code example is currently available or this language may not be supported.