| WikiLoggingHelperBeginActionScope(IWikiClientLoggable, Object, Object, Object, Object, String) Method |
This is preliminary documentation and is subject to change.
Namespace: WikiClientLibrary.Infrastructures.LoggingAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static IDisposable BeginActionScope(
this IWikiClientLoggable loggable,
Object? target,
Object param1,
Object param2,
Object param3,
string? actionName = null
)
<ExtensionAttribute>
Public Shared Function BeginActionScope (
loggable As IWikiClientLoggable,
target As Object,
param1 As Object,
param2 As Object,
param3 As Object,
Optional actionName As String = Nothing
) As IDisposable
Dim loggable As IWikiClientLoggable
Dim target As Object
Dim param1 As Object
Dim param2 As Object
Dim param3 As Object
Dim actionName As String
Dim returnValue As IDisposable
returnValue = loggable.BeginActionScope(target,
param1, param2, param3, actionName)
public:
[ExtensionAttribute]
static IDisposable^ BeginActionScope(
IWikiClientLoggable^ loggable,
Object^ target,
Object^ param1,
Object^ param2,
Object^ param3,
String^ actionName = nullptr
)
[<ExtensionAttribute>]
static member BeginActionScope :
loggable : IWikiClientLoggable *
target : Object *
param1 : Object *
param2 : Object *
param3 : Object *
?actionName : string
(* Defaults:
let _actionName = defaultArg actionName null
*)
-> IDisposable
Parameters
- loggable IWikiClientLoggable
- The instance whose Logger will enter a new scope.
- target Object
- The action target. Usually the target WikiSite, WikiPage, etc.
Can be null.
- param1 Object
- The first parameter for the action.
- param2 Object
- The second parameter for the action.
- param3 Object
- The third parameter for the action.
- actionName String (Optional)
- The action name. Leave it missing to use the caller's member name.
Return Value
IDisposableAn
IDisposable that when disposed, indicates the action is over.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IWikiClientLoggable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also