Hunny Software Library Reference

Headers.HasField Method 

Returns true if a field with the specified name is in the list.

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

Parameters

name
name of the field to search for

Return Value

True if the specified field is present.

Remarks

               if (headers.HasField("Received") {
                    // ...
               }
            

See Also

Headers Class | Hunny.Mime Namespace