Partilhar via


AzureSession.RegisterComponent Method

Definition

Overloads

RegisterComponent<T>(String, Func<T>)
RegisterComponent<T>(String, Func<T>, Boolean)

RegisterComponent<T>(String, Func<T>)

public void RegisterComponent<T> (string componentName, Func<T> componentInitializer) where T : class;
abstract member RegisterComponent : string * Func<'T (requires 'T : null)> -> unit (requires 'T : null)
override this.RegisterComponent : string * Func<'T (requires 'T : null)> -> unit (requires 'T : null)
Public Sub RegisterComponent(Of T As Class) (componentName As String, componentInitializer As Func(Of T))

Type Parameters

T

Parameters

componentName
String
componentInitializer
Func<T>

Implements

Applies to

RegisterComponent<T>(String, Func<T>, Boolean)

public void RegisterComponent<T> (string componentName, Func<T> componentInitializer, bool overwrite) where T : class;
abstract member RegisterComponent : string * Func<'T (requires 'T : null)> * bool -> unit (requires 'T : null)
override this.RegisterComponent : string * Func<'T (requires 'T : null)> * bool -> unit (requires 'T : null)
Public Sub RegisterComponent(Of T As Class) (componentName As String, componentInitializer As Func(Of T), overwrite As Boolean)

Type Parameters

T

Parameters

componentName
String
componentInitializer
Func<T>
overwrite
Boolean

Implements

Applies to