この API は、SQL Server 2012 インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。
指定した値を使用してプロパティを設定します。
名前空間: 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
プロパティの型です。
パラメーター
- propertyBackingField
型: T%
変更するプロパティの背景フィールドです。
- newValue
型: T
プロパティに指定する新しい値です。
- propertyName
型: System.String
プロパティの名前です。
- emptyStringIsNull
型: System.Boolean
空の文字列が null であることを示す場合は true、それ以外の場合は false です。
戻り値
型: System.Boolean
プロパティが設定された場合は true、それ以外の場合は false です。