Compartir a través de


ILogger.BeginScope Method

Definition

Overloads

BeginScope(String, Object[])

Begins a logical operation scope.

BeginScope<TState>(TState)

The identifier for the scope.

BeginScope(String, Object[])

Begins a logical operation scope.

public:
 IDisposable ^ BeginScope(System::String ^ messageFormat, ... cli::array <System::Object ^> ^ args);
public IDisposable BeginScope (string messageFormat, params object[] args);
abstract member BeginScope : string * obj[] -> IDisposable
Public Function BeginScope (messageFormat As String, ParamArray args As Object()) As IDisposable

Parameters

messageFormat
String

Format string of the scope message.

args
Object[]

An object array that contains zero or more objects to format.

Returns

Applies to

BeginScope<TState>(TState)

The identifier for the scope.

public:
generic <typename TState>
 IDisposable ^ BeginScope(TState state);
public IDisposable BeginScope<TState> (TState state);
abstract member BeginScope : 'State -> IDisposable
Public Function BeginScope(Of TState) (state As TState) As IDisposable

Type Parameters

TState

Parameters

state
TState

Returns

Applies to