Export (0) Print
Expand All

DataContractBase.SetProperty<T> Method

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Sets the property using the specified values.

Namespace:  Microsoft.MasterDataServices.Services.DataContracts
Assembly:  Microsoft.MasterDataServices.Services.Contracts (in Microsoft.MasterDataServices.Services.Contracts.dll)

protected bool SetProperty<T>(
	ref T propertyBackingField,
	T newValue,
	string propertyName,
	bool emptyStringIsNull
)

Type Parameters

T

The property type.

Parameters

propertyBackingField
Type: T
The backing field of the property to change.
newValue
Type: T
The new value to give to the property.
propertyName
Type: String
The name of the property.
emptyStringIsNull
Type: Boolean
true to indicate that the empty string is null; otherwise, false.

Return Value

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

Community Additions

ADD
Show:
© 2014 Microsoft