PowerTCP Mail for .NET
SetValue Method




Name of the header field to reference. Typical values are available as string constants in HeaderKey.
New value. A null or empty string will remove the header field.
Shortcut method that adds a new header field if the referenced field is not present.
Syntax
Public Sub SetValue( _
   ByVal name As String, _
   ByVal value As String _
) 
Dim instance As HeaderDictionary
Dim name As String
Dim value As String
 
instance.SetValue(name, value)
public void SetValue( 
   string name,
   string value
)
public: void SetValue( 
   string* name,
   string* value
) 
public:
void SetValue( 
   String^ name,
   String^ value
) 

Parameters

name
Name of the header field to reference. Typical values are available as string constants in HeaderKey.
value
New value. A null or empty string will remove the header field.
Remarks
Any existing parameters are preserved.
See Also

Reference

HeaderDictionary Class
HeaderDictionary Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic