This topic has not yet been rated - Rate this topic

DataContractBase.SetProperty<T> Method

SQL Server 2012

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: System.String
The name of the property.
emptyStringIsNull
Type: System.Boolean
true to indicate that the empty string is null; otherwise, false.

Return Value

Type: System.Boolean
true if the property was set; otherwise, false.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.