Dart.Mail Namespace > HeaderDictionary Class > Add Method : Add(String,HeaderField) Method |
Public Overloads Shadows Sub Add( _ ByVal key As String, _ ByVal value As HeaderField _ )
Dim instance As HeaderDictionary Dim key As String Dim value As HeaderField instance.Add(key, value)
public new void Add( string key, HeaderField value )
public: new void Add( string* key, HeaderField* value )
public: new void Add( String^ key, HeaderField^ value )
private MailMessage addCustomHeaderField(MailMessage message) { //Add the following header to the message: //My-Custom-Header: This is a custom header message.Headers.Add("My-Custom-Header", new HeaderField("My-Custom-Header", "This is a custom header")); return message; }
Private Function addCustomHeaderField(ByVal message As MailMessage) As MailMessage 'Add the following header to the message: 'My-Custom-Header: This is a custom header message.Headers.Add("My-Custom-Header", New HeaderField("My-Custom-Header", "This is a custom header")) Return message End Function