ComplexObject.RaisePropertyChanged Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Called from a property setter to notify the framework that a complex object property has changed.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Protected Sub RaisePropertyChanged ( _
propertyName As String _
)
'Usage
Dim propertyName As String
Me.RaisePropertyChanged(propertyName)
protected void RaisePropertyChanged(
string propertyName
)
protected:
void RaisePropertyChanged(
String^ propertyName
)
member RaisePropertyChanged :
propertyName:string -> unit
protected function RaisePropertyChanged(
propertyName : String
)
Parameters
- propertyName
Type: System.String
The name of the property that has changed.
Remarks
This method does not perform any change tracking operations.
Examples
Public Property Name() As String
Get
Return m_name
End Get
Set(ByVal value As String)
If Me.m_name <> value Then
Me.ValidateProperty("Name", value)
Me.m_name = value
Me.RaisePropertyChanged("Name")
End If
End Set
End Property
public string Name
{
get
{
return this.name;
}
set
{
if (this.name != value)
{
this.ValidateProperty("Name", value);
this.name = value;
this.RaisePropertyChanged("Name");
}
}
}