MailMessage.GetObjectData

MailMessage.GetObjectData method

Populates a SerializationInfo with the data needed to serialize the target object.

public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
ParameterTypeDescription
infoSerializationInfoThe SerializationInfo to populate with data.
contextStreamingContextThe destination (see StreamingContext) for this serialization.

Exceptions

exceptioncondition
SecurityExceptionThe caller does not have the required permission.

See Also