내보내기(0) 인쇄
모두 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

DiagnosticMonitor.UpdateStorageAccount Method

Updated: December 6, 2013

Updates the storage account information for the current diagnostic monitor.

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

public void UpdateStorageAccount (
	string connectionString
)

Parameters

connectionString

A String that specifies a connection string to a storage account, used for updating the diagnostic monitor’s storage configuration.

The storage configuration for a role instance’s DiagnosticMonitor is updated with the connection string input parameter. The diagnostic monitor’s configuration is updated immediately using the new storage account, you do not need to restart the DiagnosticMonitor.

Example

The following code snippet creates a connection and calls the UpdateStorageAccount method:

// Create a connection string.  You can find the account name and key for 
// the storage account in the Windows Azure Management Portal (http://manage.windowsazure.com)
string connectionString = "DefaultEndpointsProtocol=https;AccountName=<AccountName>;AccountKey=<AccountKey>";

// Update the DiagnosticMonitor with the new storage account information.
diagMonitor.UpdateStorageAccount(connectionString);


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, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft