StructuralObject.SetValidValue<T> Method (T, T, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets a complex object for the specified property.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

protected internal T SetValidValue<T>(
	T oldValue,
	T newValue,
	string property
)
where T : ComplexObject

Parameters

oldValue
Type: T

The original complex object for the property, if any.

newValue
Type: T

The complex object is being set.

property
Type: System.String

The complex property that is being set to the complex object.

Return Value

Type: T

A complex type that derives from complex object.

Type Parameters

T

The type of the object being replaced.

.NET Framework
Available since 3.5
Return to top
Show: