LoggerMessage.DefineScope 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
DefineScope(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope<T1,T2,T3,T4,T5,T6>(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope<T1,T2,T3,T4,T5>(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope<T1,T2,T3,T4>(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope<T1,T2,T3>(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope<T1,T2>(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope<T1>(String) |
Creates a delegate that can be invoked to create a log scope. |
DefineScope(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
static Func<Microsoft::Extensions::Logging::ILogger ^, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,IDisposable?> DefineScope (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, IDisposable>
Public Shared Function DefineScope (formatString As String) As Func(Of ILogger, IDisposable)
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.
Applies to
DefineScope<T1,T2,T3,T4,T5,T6>(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
static Func<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, T6, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,IDisposable?> DefineScope<T1,T2,T3,T4,T5,T6> (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, IDisposable>
Public Shared Function DefineScope(Of T1, T2, T3, T4, T5, T6) (formatString As String) As Func(Of ILogger, T1, T2, T3, T4, T5, T6, IDisposable)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
- T5
The type of the fifth parameter passed to the named format string.
- T6
The type of the sixth parameter passed to the named format string.
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.
Applies to
DefineScope<T1,T2,T3,T4,T5>(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
static Func<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,IDisposable?> DefineScope<T1,T2,T3,T4,T5> (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, IDisposable>
Public Shared Function DefineScope(Of T1, T2, T3, T4, T5) (formatString As String) As Func(Of ILogger, T1, T2, T3, T4, T5, IDisposable)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
- T5
The type of the fifth parameter passed to the named format string.
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.
Applies to
DefineScope<T1,T2,T3,T4>(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
generic <typename T1, typename T2, typename T3, typename T4>
static Func<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,IDisposable?> DefineScope<T1,T2,T3,T4> (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, IDisposable>
Public Shared Function DefineScope(Of T1, T2, T3, T4) (formatString As String) As Func(Of ILogger, T1, T2, T3, T4, IDisposable)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.
Applies to
DefineScope<T1,T2,T3>(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
generic <typename T1, typename T2, typename T3>
static Func<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,IDisposable?> DefineScope<T1,T2,T3> (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, IDisposable>
Public Shared Function DefineScope(Of T1, T2, T3) (formatString As String) As Func(Of ILogger, T1, T2, T3, IDisposable)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.
Applies to
DefineScope<T1,T2>(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
generic <typename T1, typename T2>
static Func<Microsoft::Extensions::Logging::ILogger ^, T1, T2, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,IDisposable?> DefineScope<T1,T2> (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, IDisposable>
Public Shared Function DefineScope(Of T1, T2) (formatString As String) As Func(Of ILogger, T1, T2, IDisposable)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.
Applies to
DefineScope<T1>(String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to create a log scope.
public:
generic <typename T1>
static Func<Microsoft::Extensions::Logging::ILogger ^, T1, IDisposable ^> ^ DefineScope(System::String ^ formatString);
public static Func<Microsoft.Extensions.Logging.ILogger,T1,IDisposable?> DefineScope<T1> (string formatString);
static member DefineScope : string -> Func<Microsoft.Extensions.Logging.ILogger, 'T1, IDisposable>
Public Shared Function DefineScope(Of T1) (formatString As String) As Func(Of ILogger, T1, IDisposable)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
Parameters
- formatString
- String
The named format string.
Returns
A delegate that, when invoked, creates a log scope.