语言

ConsoleLoggerSettings.TryGetSwitch(String, LogLevel) 方法

定义

此方法仅用于兼容性。

public:
 virtual 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
override this.TryGetSwitch : string * LogLevel -> bool
Public Function TryGetSwitch (name As String, ByRef level As LogLevel) As Boolean

参数

name
String

此方法仅用于兼容性。

level
LogLevel

此方法仅用于兼容性。

返回

此方法仅用于兼容性。

实现

适用于