We are having to extend the System.Net.Mail namespace and need some help
with coding it.
We have added several properties to System.Net.Mail .Attachment and need to
add our several of them to System.Net.Mail .MailMessage.At tachments.
// public AttachmentColle ction Attachments { get; }
How do we override AttachmentColle ction to be a collection of
OurNamespace.At tachments?
How then do we override MailMessage to be the above collection?
public class MailMessage : System.Net.Mail .MailMessage
{
public MailMessage()
{
}
private int _shipmentID;
public int ShipmentID
{
get { return _shipmentID; }
set { _shipmentID = value; }
}
private int _shipmentEmails ID;
public int ShipmentEmailsI D
{
get { return _shipmentEmails ID; }
set { _shipmentEmails ID = value; }
}
// overide attachments
public override ?
}
public class Attachment : System.Net.Mail .Attachment
{private int _documentsID;
public int DocumentsID
{
get { return _documentsID; }
set { _documentsID = value; }
}
}
with coding it.
We have added several properties to System.Net.Mail .Attachment and need to
add our several of them to System.Net.Mail .MailMessage.At tachments.
// public AttachmentColle ction Attachments { get; }
How do we override AttachmentColle ction to be a collection of
OurNamespace.At tachments?
How then do we override MailMessage to be the above collection?
public class MailMessage : System.Net.Mail .MailMessage
{
public MailMessage()
{
}
private int _shipmentID;
public int ShipmentID
{
get { return _shipmentID; }
set { _shipmentID = value; }
}
private int _shipmentEmails ID;
public int ShipmentEmailsI D
{
get { return _shipmentEmails ID; }
set { _shipmentEmails ID = value; }
}
// overide attachments
public override ?
}
public class Attachment : System.Net.Mail .Attachment
{private int _documentsID;
public int DocumentsID
{
get { return _documentsID; }
set { _documentsID = value; }
}
}
Comment