ILogger.BeginScope Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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