Export (0) Print
Expand All

RoleInstanceDiagnosticManager.GetCurrentConfiguration Method

Updated: November 15, 2013

Gets the current diagnostic monitor configuration for a role instance.

Namespace: Microsoft.WindowsAzure.Diagnostics.Management
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)

DiagnosticMonitorConfiguration^ GetCurrentConfiguration ()

Return Value

Type: Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorConfiguration

A DiagnosticMonitorConfiguration object.

The GetCurrentConfiguration method is used to return the current DiagnosticMonitorConfiguration object for a role instance.


The following code snippet gets the current diagnostic monitor configuration for the role instance:

// Get the diagnostic monitor for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = 
         new RoleInstanceDiagnosticManager(myStorageAccount, 

// Get the current diagnostic monitor for the role.
DiagnosticMonitorConfiguration currentConfiguration = roleInstanceDiagnosticManager.GetCurrentConfiguration();

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

Community Additions

© 2014 Microsoft