Dart.Mail Namespace > Part Class : Headers Property |
Public Property Headers As HeaderDictionary
Dim instance As Part Dim value As HeaderDictionary instance.Headers = value value = instance.Headers
public HeaderDictionary Headers {get; set;}
public: __property HeaderDictionary* get_Headers(); public: __property void set_Headers( HeaderDictionary* value );
public: property HeaderDictionary^ Headers { HeaderDictionary^ get(); void set ( HeaderDictionary^ 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