Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Serialization Namespace / EntitySurrogate Class / CheckSurrogateData Method

In This Topic
    CheckSurrogateData Method (EntitySurrogate)
    In This Topic
    Integrity check according to the contentType.
    Syntax
    'Declaration
     
    Protected Overridable Function CheckSurrogateData( _
       ByVal content As contentType, _
       Optional ByVal logMessage As String _
    ) As Boolean
    protected virtual bool CheckSurrogateData( 
       contentType content,
       string logMessage
    )

    Parameters

    content
    logMessage
    Remarks
    Use this method to add check/warning messages to the Surrogate<T>.Log. During the serialization process, it is called internally before serializing the surrogate. During the deserialization process, you can use it for your custom surrogate checks in ConvertToObject or in CopyDataToObject methods in conjunction with the DeserializationContent.
    See Also