AzureSession.RegisterComponent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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