RoleManager Class
Provides methods to log messages and raise alerts, retrieve service configuration settings, and return the location of the local storage resource.
Namespace: Microsoft.ServiceHosting.ServiceRuntime
Assembly: Microsoft.ServiceHosting.ServiceRuntime (in microsoft.servicehosting.serviceruntime.dll)
Usage
Dim instance As RoleManager
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.Assert, Unrestricted:=True)> _
Public Class RoleManager
[PermissionSetAttribute(SecurityAction.Assert, Unrestricted=true)]
public class RoleManager
[PermissionSetAttribute(SecurityAction::Assert, Unrestricted=true)]
public ref class RoleManager
/** @attribute PermissionSetAttribute(SecurityAction.Assert, Unrestricted=true) */
public class RoleManager
public class RoleManager
Remarks
The Windows Azure fabric runs IIS 7.0 in integrated mode. In integrated mode, the Application_Start event does not support access to the request context or to the members of the RoleManager class provided by the Windows Azure SDK runtime API. If you are writing an ASP.NET application that accesses the request context or calls methods of the RoleManager class from the Application_Start event, you should modify it to initialize in the Application_BeginRequest event instead.
For an example that shows how to use the Application_BeginRequest event, see the PersonalWebSite Sample that ships with the Windows Azure SDK.
Inheritance Hierarchy
System.Object
Microsoft.ServiceHosting.ServiceRuntime.RoleManager
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
Reference
RoleManager Members
Microsoft.ServiceHosting.ServiceRuntime Namespace