Partager via


Méthode DataContractBase.SetProperty<T>

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Sets the property using the specified values.

Espace de noms :  Microsoft.MasterDataServices.Services.DataContracts
Assembly :  Microsoft.MasterDataServices.Services.Contracts (en Microsoft.MasterDataServices.Services.Contracts.dll)

Syntaxe

'Déclaration
Protected Function SetProperty(Of T) ( _
    ByRef propertyBackingField As T, _
    newValue As T, _
    propertyName As String, _
    emptyStringIsNull As Boolean _
) As Boolean
'Utilisation
Dim propertyBackingField As T
Dim newValue As T
Dim propertyName As String 
Dim emptyStringIsNull As Boolean 
Dim returnValue As Boolean 

returnValue = Me.SetProperty(propertyBackingField, _
    newValue, propertyName, emptyStringIsNull)
protected bool SetProperty<T>(
    ref T propertyBackingField,
    T newValue,
    string propertyName,
    bool emptyStringIsNull
)
protected:
generic<typename T>
bool SetProperty(
    T% propertyBackingField, 
    T newValue, 
    String^ propertyName, 
    bool emptyStringIsNull
)
member SetProperty : 
        propertyBackingField:'T byref * 
        newValue:'T * 
        propertyName:string * 
        emptyStringIsNull:bool -> bool
JScript ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • T
    The property type.

Paramètres

  • 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.

Valeur de retour

Type : System.Boolean
true if the property was set; otherwise, false.

Voir aussi

Référence

DataContractBase Classe

Espace de noms Microsoft.MasterDataServices.Services.DataContracts