匯出 (0) 列印
全部展開

OnDemandTransferOptions.LogLevelFilter 屬性

Gets or sets the filter level for event data that has been logged with level information.

命名空間: Microsoft.WindowsAzure.Diagnostics.Management
組件: Microsoft.WindowsAzure.Diagnostics (在 microsoft.windowsazure.diagnostics.dll 中)

'用途
Dim instance As OnDemandTransferOptions
Dim value As LogLevel

value = instance.LogLevelFilter

instance.LogLevelFilter = value

public LogLevel LogLevelFilter { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public LogLevel get_LogLevelFilter ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_LogLevelFilter (LogLevel value)

CompilerGeneratedAttribute 
public function get LogLevelFilter () : LogLevel

CompilerGeneratedAttribute 
public function set LogLevelFilter (value : LogLevel)

屬性值

Returns LogLevel.

The LogLevelFilter property specifies a LogLevel value by which to filter diagnostic data. If the logging level is set to Undefined, all data is transferred regardless of logging level.

Example

The following code snippet specifies that only error-level logs should be transferred:

// Specify the on-demand transfer options for the diagnostic data.
OnDemandTransferOptions transferOptions = new OnDemandTransferOptions();

// Specify only error-level logs.
transferOptions.LogLevelFilter = LogLevel.Error;


任何這個類型的公用靜態 (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。 並非所有的執行個體成員都是安全執行緒。

開發平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003、Windows Server 2008 和 Windows 2000

目標平台

社群新增項目

顯示:
© 2014 Microsoft