This topic has not yet been rated - Rate this topic

DiagnosticMonitor.LocalDataDirectory Property

Gets the local directory where state information for the diagnostic monitor is stored.

Namespace: Microsoft.WindowsAzure.Diagnostics
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
'Usage
Dim instance As DiagnosticMonitor
Dim value As String

value = instance.LocalDataDirectory

[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] 
public string LocalDataDirectory { get; }
/** @property */
public String get_LocalDataDirectory ()

public function get LocalDataDirectory () : String

Property Value

Type: System.String

A String that indicates the local directory.

The LocalDataDirectory property is used to get the local storage path where diagnostics data is stored. DiagnosticMonitor is a singleton, so this property can only be used on a reference to the current instance.

Example

The following example starts the DiagnosticMonitor and writes the LocalDataDirectory path to a log:

// Start the DiagnosticMonitor and create a reference to the instance.
var diagMonitor = DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");

// Write the directory path to the logs.
Trace.WriteLine("Local Directory: " + diagMonitor.LocalDataDirectory);


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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ