DataContractBase.SetProperty<T> Método
Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.
Sets the property using the specified values.
Espacio de nombres: Microsoft.MasterDataServices.Services.DataContracts
Ensamblado: Microsoft.MasterDataServices.Services.Contracts (en Microsoft.MasterDataServices.Services.Contracts.dll)
Sintaxis
'Declaración
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 no admite tipos y 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 devuelto
Tipo: System.Boolean
true if the property was set; otherwise, false.
Vea también
Referencia
Espacio de nombres Microsoft.MasterDataServices.Services.DataContracts