'Declaration
Public Shared Function BeginScope( _ ByVal messageFormat As String, _ ByVal ParamArray args() As Object _ ) As IDisposable
'Usage
Dim messageFormat As String Dim args() As Object Dim value As IDisposable value = Utils.BeginScope(messageFormat, args)
public static IDisposable BeginScope( string messageFormat, params object[] args )
public: static IDisposable^ BeginScope( String^ messageFormat, ... array<Object^>^ args )
Parameters
- messageFormat
- Format string of the log message in message template format. Example:
"User {User} logged in from {Address}"
- args
- An object array that contains zero or more objects to format.
Return Value
A disposable scope object. Can be null.