Hunny Software Library Reference

Headers.FieldBody Method 

Gets the field body of the specified header field.

[Visual Basic]
Public Function FieldBody( _
   ByVal name As String _
) As FieldBody
[C#]
public FieldBody FieldBody(
   string name
);

Parameters

name
name of the field to retrieve

Return Value

A reference to the FieldBody for the specified field.

Remarks

If the header field does not exist, the method creates it. You may call HasField() to test if the header field exists without creating it.

For most standard structured header fields, Headers provides convenience properties for directly accessing those fields. For example, to access the To header field, you may get the To property, which returns an AddressList object. You may call FieldBody() to access the field body of unstructured header fields or less common header fields.

See Also

Headers Class | Hunny.Mime Namespace