BionicCode.Net
BionicCode.Net
BionicCode.Utilities.Net Namespaces
BionicCode.Utilities.Net.Standard Namespaces
BionicCode.Utilities.Net.Standard
IEventAggregator Interface
IEventAggregator Methods
TryRegisterObserver Method
TryRegisterObserver Method (String, Type, Delegate)
TryRegisterObserver(TEventArgs) Method (String, Type, EventHandler(TEventArgs))

| # IEventAggregator TryRegisterObserver TEventArgs Method (String, Type, EventHandler TEventArgs )

[Missing <summary> documentation for "M:BionicCode.Utilities.Net.Standard.IEventAggregator.TryRegisterObserver``1(System.String,System.Type,System.EventHandler{``0})"]

Namespace: BionicCode.Utilities.Net.Standard
Assembly: BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.0
Syntax
C#
VB
C++
F#
J#
JScript
JavaScript
ASP.NET
X#
Copy

    bool TryRegisterObserver<TEventArgs>(
    	string eventName,
    	Type eventSourceType,
    	EventHandler<TEventArgs> eventHandler
    )

    Function TryRegisterObserver(Of TEventArgs) (
    	eventName As String,
    	eventSourceType As Type,
    	eventHandler As EventHandler(Of TEventArgs)
    ) As Boolean

    Dim instance As IEventAggregator
    Dim eventName As String
    Dim eventSourceType As Type
    Dim eventHandler As EventHandler(Of TEventArgs)
    Dim returnValue As Boolean

    returnValue = instance.TryRegisterObserver(eventName,
    	eventSourceType, eventHandler)

    generic<typename TEventArgs>
    bool TryRegisterObserver(
    	String^ eventName,
    	Type^ eventSourceType,
    	EventHandler<TEventArgs>^ eventHandler
    )

    abstract TryRegisterObserver :
            eventName : string *
            eventSourceType : Type *
            eventHandler : EventHandler<'TEventArgs> -> bool

    J# supports the use of generic APIs, but not the declaration of new ones.

    JScript does not support generic types or methods.

    JavaScript does not support generic types or methods.

    METHOD TryRegisterObserver<TEventArgs>(
    	eventName AS STRING,
    	eventSourceType AS Type,
    	eventHandler AS EventHandler<TEventArgs>
    )
     AS LOGIC

#### Parameters

eventName
  Type: System
  String

  [Missing <param name="eventName"/> documentation for "M:BionicCode.Utilities.Net.Standard.IEventAggregator.TryRegisterObserver``1(System.String,System.Type,System.EventHandler{``0})"]

eventSourceType
  Type: System
  Type

  [Missing <param name="eventSourceType"/> documentation for "M:BionicCode.Utilities.Net.Standard.IEventAggregator.TryRegisterObserver``1(System.String,System.Type,System.EventHandler{``0})"]

eventHandler
  Type: System
  EventHandler
  TEventArgs

  [Missing <param name="eventHandler"/> documentation for "M:BionicCode.Utilities.Net.Standard.IEventAggregator.TryRegisterObserver``1(System.String,System.Type,System.EventHandler{``0})"]

#### Type Parameters

TEventArgs

  [Missing <typeparam name="TEventArgs"/> documentation for "M:BionicCode.Utilities.Net.Standard.IEventAggregator.TryRegisterObserver``1(System.String,System.Type,System.EventHandler{``0})"]

#### Return Value

Type: Boolean

[Missing <returns> documentation for "M:BionicCode.Utilities.Net.Standard.IEventAggregator.TryRegisterObserver``1(System.String,System.Type,System.EventHandler{``0})"]

See Also

#### Reference

IEventAggregator Interface
TryRegisterObserver Overload
BionicCode.Utilities.Net.Standard Namespace
Send comments on this topic to BionicCode@outlook.com
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md