JAMS Developer Guide
SetError Method


MVPSI.JAMS Namespace > BasePublicObject Class : SetError Method
The name of the property that has an error.
The error message.
Sets the error message for a property.
Syntax
'Declaration
 
Public Sub SetError( _
   ByVal propertyName As System.String, _
   ByVal errorMsg As System.String _
) 
'Usage
 
Dim instance As BasePublicObject
Dim propertyName As System.String
Dim errorMsg As System.String
 
instance.SetError(propertyName, errorMsg)
public void SetError( 
   System.string propertyName,
   System.string errorMsg
)

Parameters

propertyName
The name of the property that has an error.
errorMsg
The error message.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BasePublicObject Class
BasePublicObject Members