Hookable<T>.Create Method (Boolean, Func<T>, Action<T>)
Namespace: Microsoft.Exchange.Diagnostics
Assembly: Microsoft.Exchange.Diagnostics (in Microsoft.Exchange.Diagnostics.dll)
Syntax
'Declaration
Public Shared Function Create ( _
setTestHookNullRestoresDefaultValue As Boolean, _
activeValueGetter As Func(Of T), _
activeValueSetter As Action(Of T) _
) As Hookable(Of T)
'Usage
Dim setTestHookNullRestoresDefaultValue As Boolean
Dim activeValueGetter As Func(Of T)
Dim activeValueSetter As Action(Of T)
Dim returnValue As Hookable(Of T)
returnValue = Hookable.Create(setTestHookNullRestoresDefaultValue, _
activeValueGetter, activeValueSetter)
public static Hookable<T> Create(
bool setTestHookNullRestoresDefaultValue,
Func<T> activeValueGetter,
Action<T> activeValueSetter
)
Parameters
- setTestHookNullRestoresDefaultValue
Type: System.Boolean
- activeValueGetter
Type: System.Func<T>
- activeValueSetter
Type: System.Action<T>