EntitySurrogate.CheckSurrogateData Method

Integrity check according to the contentType.
Protected Overridable Function CheckSurrogateData( _ 
ByVal content As contentType, _ 
Optional ByVal logMessage As String = null _ 
) As Boolean
This language is not supported or no code example is available.
protected virtual bool CheckSurrogateData( 
contentType content
string logMessage = null 
)
This language is not supported or no code example is available.

Parameters

content
contentType

logMessage
string

Return Value

bool
Remarks
 
Use this method to add check/warning messages to the Surrogate.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.

.NET Framework

Supported in: 4.8

In this article

Definition