Validate Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Validates property values for specific event objects. Deriving classes can override this method.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overridable Function Validate As Boolean
'Usage
Dim instance As BaseCommerceEvent
Dim returnValue As Boolean
returnValue = instance.Validate()
public virtual bool Validate()
public:
virtual bool Validate()
public function Validate() : boolean
Return Value
Type: System..::.Boolean
true to indicate the property value is valid; otherwise false.
Remarks
This method checks the validity of the objects before logging the event object contents. This is good for checking cross-property validation and validating that all the mandatory fields were set correctly. Derived classes should override this method.
Permissions
- 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.