DataContractBase.SetProperty<T> 方法

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

Sets the property using the specified values.

命名空间:  Microsoft.MasterDataServices.Services.DataContracts
程序集:  Microsoft.MasterDataServices.Services.Contracts(在 Microsoft.MasterDataServices.Services.Contracts.dll 中)

语法

声明
Protected Function SetProperty(Of T) ( _
    ByRef propertyBackingField As T, _
    newValue As T, _
    propertyName As String, _
    emptyStringIsNull As Boolean _
) As Boolean
用法
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 不支持一般类型和方法。

类型参数

  • T
    The property type.

参数

  • propertyBackingField
    类型:T%
    The backing field of the property to change.
  • newValue
    类型:T
    The new value to give to the property.
  • emptyStringIsNull
    类型:System.Boolean
    true to indicate that the empty string is null; otherwise, false.

返回值

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

请参阅

参考

DataContractBase 类

Microsoft.MasterDataServices.Services.DataContracts 命名空间