Compartir a través de


ConfigurationConsoleLoggerSettings.TryGetSwitch(String, LogLevel) Método

Definición

Obtiene el nivel de registro del modificador especificado.

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

Parámetros

name
String

Nombre del modificador que se va a buscar.

level
LogLevel

Cuando este método vuelve, contiene el valor del modificador si se encuentra. Si no se encuentra el modificador, este parámetro se establece Noneen .

Devoluciones

true es si se ha encontrado el modificador; de lo contrario false, es .

Implementaciones

Excepciones

Se aplica a