BionicCode.Net
BionicCode.Net
BionicCode.Utilities.Net Namespaces
BionicCode.Utilities.Net.Standard Namespaces
BionicCode.Utilities.Net.Standard.ViewModel
ViewModel Class
ViewModel Methods
TrySetValueSilent Method
TrySetValueSilent(TValue) Method (TValue, TValue, String)
TrySetValueSilent(TValue) Method (TValue, Func(TValue, ValueTuple(Boolean, IEnumerable(String))), TValue, Boolean, Boolean, String)

| # ViewModel TrySetValueSilent TValue Method (TValue, Func TValue, ValueTuple Boolean, IEnumerable String , TValue , Boolean, Boolean, String)

[Missing <summary> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

Namespace: BionicCode.Utilities.Net.Standard.ViewModel
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

    protected virtual bool TrySetValueSilent<TValue>(
    	TValue value,
    	Func<TValue, (bool IsValid, IEnumerable<string> ErrorMessages)> validationDelegate,
    	ref TValue targetBackingField,
    	bool isRejectInvalidValueEnabled = false,
    	bool isThrowExceptionOnValidationErrorEnabled = false,
    	string propertyName = null
    )

    Protected Overridable Function TrySetValueSilent(Of TValue) (
    	value As TValue,
    	validationDelegate As Func(Of TValue, (IsValid As Boolean, ErrorMessages As IEnumerable(Of String))),
    	ByRef targetBackingField As TValue,
    	Optional isRejectInvalidValueEnabled As Boolean = false,
    	Optional isThrowExceptionOnValidationErrorEnabled As Boolean = false,
    	Optional propertyName As String = Nothing
    ) As Boolean

    Dim value As TValue
    Dim validationDelegate As Func(Of TValue, (IsValid As Boolean, ErrorMessages As IEnumerable(Of String)))
    Dim targetBackingField As TValue
    Dim isRejectInvalidValueEnabled As Boolean
    Dim isThrowExceptionOnValidationErrorEnabled As Boolean
    Dim propertyName As String
    Dim returnValue As Boolean

    returnValue = Me.TrySetValueSilent(value,
    	validationDelegate, targetBackingField,
    	isRejectInvalidValueEnabled, isThrowExceptionOnValidationErrorEnabled,
    	propertyName)

    protected:
    generic<typename TValue>
    virtual bool TrySetValueSilent(
    	TValue value,
    	Func<TValue, ValueTuple<bool, IEnumerable<String^>^>>^ validationDelegate,
    	TValue% targetBackingField,
    	bool isRejectInvalidValueEnabled = false,
    	bool isThrowExceptionOnValidationErrorEnabled = false,
    	String^ propertyName = nullptr
    )

    abstract TrySetValueSilent :
            value : 'TValue *
            validationDelegate : Func<'TValue, ValueTuple<bool, IEnumerable<string>>> *
            targetBackingField : 'TValue byref *
            ?isRejectInvalidValueEnabled : bool *
            ?isThrowExceptionOnValidationErrorEnabled : bool *
            ?propertyName : string
    (* Defaults:
            let _isRejectInvalidValueEnabled = defaultArg isRejectInvalidValueEnabled false
            let _isThrowExceptionOnValidationErrorEnabled = defaultArg isThrowExceptionOnValidationErrorEnabled false
            let _propertyName = defaultArg propertyName null
    *)
    -> bool
    override TrySetValueSilent :
            value : 'TValue *
            validationDelegate : Func<'TValue, ValueTuple<bool, IEnumerable<string>>> *
            targetBackingField : 'TValue byref *
            ?isRejectInvalidValueEnabled : bool *
            ?isThrowExceptionOnValidationErrorEnabled : bool *
            ?propertyName : string
    (* Defaults:
            let _isRejectInvalidValueEnabled = defaultArg isRejectInvalidValueEnabled false
            let _isThrowExceptionOnValidationErrorEnabled = defaultArg isThrowExceptionOnValidationErrorEnabled false
            let _propertyName = defaultArg propertyName null
    *)
    -> 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.

    PROTECTED VIRTUAL METHOD TrySetValueSilent<TValue>(
    	value AS TValue,
    	validationDelegate AS Func<TValue, ValueTuple<LOGIC, IEnumerable<STRING>>>,
    	targetBackingField REF TValue,
    	isRejectInvalidValueEnabled AS LOGIC := FALSE,
    	isThrowExceptionOnValidationErrorEnabled AS LOGIC := FALSE,
    	propertyName AS STRING := NULL
    )
     AS LOGIC

#### Parameters

value
  Type: TValue

  [Missing <param name="value"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

validationDelegate
  Type: System
  Func
  TValue, ValueTuple
  Boolean, IEnumerable
  String

  [Missing <param name="validationDelegate"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

targetBackingField
  Type: TValue

  [Missing <param name="targetBackingField"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

isRejectInvalidValueEnabled (Optional)
  Type: System
  Boolean

  [Missing <param name="isRejectInvalidValueEnabled"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

isThrowExceptionOnValidationErrorEnabled (Optional)
  Type: System
  Boolean

  [Missing <param name="isThrowExceptionOnValidationErrorEnabled"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

propertyName (Optional)
  Type: System
  String

  [Missing <param name="propertyName"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

#### Type Parameters

TValue

  [Missing <typeparam name="TValue"/> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

#### Return Value

Type: Boolean

[Missing <returns> documentation for "M:BionicCode.Utilities.Net.Standard.ViewModel.ViewModel.TrySetValueSilent``1(``0,System.Func{``0,System.ValueTuple{System.Boolean,System.Collections.Generic.IEnumerable{System.String}}},``0@,System.Boolean,System.Boolean,System.String)"]

See Also

#### Reference

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