ReflectionEventSubscriber Constructor |
Namespace: MongoDB.Driver.Core.EventsAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntax public ReflectionEventSubscriber(
Object instance,
string methodName = "Handle",
BindingFlags bindingFlags = BindingFlags.Default|BindingFlags.Instance|BindingFlags.Public
)
Public Sub New (
instance As Object,
Optional methodName As String = "Handle",
Optional bindingFlags As BindingFlags = BindingFlags.Default Or BindingFlags.Instance Or BindingFlags.Public
)
new :
instance : Object *
?methodName : string *
?bindingFlags : BindingFlags
(* Defaults:
let _methodName = defaultArg methodName "Handle"
let _bindingFlags = defaultArg bindingFlags BindingFlags.Default|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