ReflectionEventSubscriber Constructor |
Namespace:
MongoDB.Driver.Core.Events
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ReflectionEventSubscriber(
Object instance,
string methodName = "Handle",
BindingFlags bindingFlags = BindingFlags.Instance|BindingFlags.Public
)
Public Sub New (
instance As Object,
Optional methodName As String = "Handle",
Optional bindingFlags As BindingFlags = BindingFlags.Instance Or BindingFlags.Public
)
new :
instance : Object *
?methodName : string *
?bindingFlags : BindingFlags
(* Defaults:
let _methodName = defaultArg methodName "Handle"
let _bindingFlags = defaultArg bindingFlags BindingFlags.Instance|BindingFlags.Public
*)
-> ReflectionEventSubscriber
Parameters
- instance
- Type: SystemObject
The instance. - methodName (Optional)
- Type: SystemString
Name of the method to match against. - bindingFlags (Optional)
- Type: System.ReflectionBindingFlags
The binding flags.
See Also