LoggerMessage.DefineScope Method
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.
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. |
- 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
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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.
Applies to
.NET 9 (package-provided) y otras versiones
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: