DataContractBase.SetProperty<T> Method (T, T, String, Boolean)

 

Applies To: SQL Server 2016 Preview

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the property using the specified values.

Namespace:   Microsoft.MasterDataServices.Services.DataContracts
Assembly:  Microsoft.MasterDataServices.Services.Contracts (in Microsoft.MasterDataServices.Services.Contracts.dll)

Syntax

protected bool SetProperty<T>(
    ref T propertyBackingField,
    T newValue,
    string propertyName = null,
    bool emptyStringIsNull = false
)
protected:
generic<typename T>
bool SetProperty(
    T% propertyBackingField,
    T newValue,
    String^ propertyName = null,
    bool emptyStringIsNull = false
)
member SetProperty<'T> : 
        propertyBackingField:'T byref *
        newValue:'T *
        propertyName:string = null *
        emptyStringIsNull:bool = false -> bool
Protected Function SetProperty(Of T) (
    ByRef propertyBackingField As T,
    newValue As T,
    propertyName As String,
    emptyStringIsNull As Boolean
) As Boolean

Parameters

  • propertyBackingField
    Type: T

    The backing field of the property to change.

  • newValue
    Type: T

    The new value to give to the property.

  • emptyStringIsNull
    Type: System.Boolean

    true to indicate that the empty string is null; otherwise, false.

Return Value

Type: System.Boolean

true if the property was set; otherwise, false.

Type Parameters

  • T
    The property type.

See Also

DataContractBase Class
Microsoft.MasterDataServices.Services.DataContracts Namespace

Return to top