DeploymentDiagnosticManager Constructor (CloudStorageAccount, String)
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
public DeploymentDiagnosticManager ( CloudStorageAccount storageAccount, string deploymentId )
public DeploymentDiagnosticManager ( CloudStorageAccount storageAccount, String deploymentId )
public function DeploymentDiagnosticManager ( storageAccount : CloudStorageAccount, deploymentId : String )
The deployment ID.
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");
Development PlatformsWindows Vista, Windows 7 and Windows Server 2008