IdeaBlade DevForce 2010 Help Reference
SetValue(Object,Object) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > DataEntityProperty<TInstance,TValue> Class > SetValue Method : SetValue(Object,Object) Method



instance
newValue
Sets the value of this property in the specified object. Gets or sets the LastName.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub SetValue( _
   ByVal instance As Object, _
   ByVal newValue As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As DataEntityProperty(Of TInstance,TValue)
Dim instance As Object
Dim newValue As Object
 
instance.SetValue(instance, newValue)
C# 
public override void SetValue( 
   object instance,
   object newValue
)
C++/CLI 
public:
void SetValue( 
   Object^ instance,
   Object^ newValue
) override 

Parameters

instance
newValue

Example

C#Copy Code
// Sample auto-generated property

/// Gets or sets the LastName. 
[Bindable(true, BindingDirection.TwoWay)]
[Editable(true)]
[Display(Name="LastName", AutoGenerateField=true)]
[IbVal.ValidateProperty]
[IbVal.StringLengthVerifier(MaxValue=30, IsRequired=true, ErrorMessageResourceName="Employee_LastName")]
[DataMember]
public string LastName {
  get { return PropertyMetadata.LastName.GetValue(this); }
  set { PropertyMetadata.LastName.SetValue(this, value); }
}
#endregion LastName property

Remarks

Any registered IdeaBlade.Validation.VerifierExecutionModes.OnBeforeSetTriggers and IdeaBlade.Validation.VerifierExecutionModes.OnAfterSetTriggers verifiers will be executed based on the IdeaBlade.Validation.VerifierOptions.ExecutionModes in effect.

All setter interceptor actions are called when using this method. This method is called from auto-generated properties in the domain model.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.