Método DataContractBase.SetProperty<T>
Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.
Sets the property using the specified values.
Namespace: Microsoft.MasterDataServices.Services.DataContracts
Assembly: Microsoft.MasterDataServices.Services.Contracts (em Microsoft.MasterDataServices.Services.Contracts.dll)
Sintaxe
'Declaração
Protected Function SetProperty(Of T) ( _
ByRef propertyBackingField As T, _
newValue As T, _
propertyName As String, _
emptyStringIsNull As Boolean _
) As Boolean
'Uso
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 não dá suporte a tipos e métodos genéricos.
Parâmetros de tipo
- T
The property type.
Parâmetros
- propertyBackingField
Tipo: T%
The backing field of the property to change.
- newValue
Tipo: T
The new value to give to the property.
- propertyName
Tipo: System.String
The name of the property.
- emptyStringIsNull
Tipo: System.Boolean
true to indicate that the empty string is null; otherwise, false.
Valor de retorno
Tipo: System.Boolean
true if the property was set; otherwise, false.
Consulte também
Referência
Namespace Microsoft.MasterDataServices.Services.DataContracts