DeploymentDiagnosticManager Constructor (CloudStorageAccount, String)
Creates a new instance of the DeploymentDiagnosticManager class.
Namespace: Microsoft.WindowsAzure.Diagnostics.Management
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
Usage
'Usage
Dim storageAccount As CloudStorageAccount
Dim deploymentId As String
Dim instance As New DeploymentDiagnosticManager(storageAccount, deploymentId)
Syntax
'Declaration
Public Sub New ( _
storageAccount As CloudStorageAccount, _
deploymentId As String _
)
public DeploymentDiagnosticManager (
CloudStorageAccount storageAccount,
string deploymentId
)
public:
DeploymentDiagnosticManager (
CloudStorageAccount^ storageAccount,
String^ deploymentId
)
public DeploymentDiagnosticManager (
CloudStorageAccount storageAccount,
String deploymentId
)
public function DeploymentDiagnosticManager (
storageAccount : CloudStorageAccount,
deploymentId : String
)
Parameters
storageAccount
Type: Microsoft.WindowsAzure.CloudStorageAccountA CloudStorageAccount object.
deploymentId
Type: System.StringThe deployment ID.
Remarks
The CreateDeploymentDiagnosticManager constructor creates a DeploymentDiagnosticManager object that can manage the running deployment’s diagnostics. You specify a CloudStorageAccount object and a deployment ID for the hosted service you want to manage. Once the object has been created, you can get the current diagnostics configuration, change it, or perform on-demand transfers of the diagnostic data to persistent storage.
The following code snippet creates a new deployment diagnostic manager.
// Create a new diagnostic manager for the deployment.
DeploymentDiagnosticManager deploymentDiagnosticManager = new DeploymentDiagnosticManager(myStorageAccount, "28281fc7754b44faa9ccf4911983edf1");
Platforms
Development Platforms
Windows Vista, Windows 7 and Windows Server 2008
Target Platforms
Change History
See Also
Reference
DeploymentDiagnosticManager Class
DeploymentDiagnosticManager Members
Microsoft.WindowsAzure.Diagnostics.Management Namespace