共用方式為


IConsoleLoggerSettings.TryGetSwitch(String, LogLevel) 方法

定義

這個方法只會保留相容性。

public:
 bool TryGetSwitch(System::String ^ name, [Runtime::InteropServices::Out] Microsoft::Extensions::Logging::LogLevel % level);
public bool TryGetSwitch (string name, out Microsoft.Extensions.Logging.LogLevel level);
abstract member TryGetSwitch : string * LogLevel -> bool
Public Function TryGetSwitch (name As String, ByRef level As LogLevel) As Boolean

參數

name
String

這個方法只會保留相容性。

level
LogLevel

這個方法只會保留相容性。

傳回

這個方法只會保留相容性。

適用於