RelayValidationRule Constructor (String, String, Func<Object, Boolean>)
Namespace: Microsoft.TeamFoundation.MVVM
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Sub New ( _
propertyName As String, _
error As String, _
validateDelegate As Func(Of Object, Boolean) _
)
public RelayValidationRule(
string propertyName,
string error,
Func<Object, bool> validateDelegate
)
public:
RelayValidationRule(
String^ propertyName,
String^ error,
Func<Object^, bool>^ validateDelegate
)
new :
propertyName:string *
error:string *
validateDelegate:Func<Object, bool> -> RelayValidationRule
public function RelayValidationRule(
propertyName : String,
error : String,
validateDelegate : Func<Object, boolean>
)
Parameters
- propertyName
Type: System.String
- error
Type: System.String
- validateDelegate
Type: System.Func<Object, Boolean>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.