Share via


MimeHeaderReader.TryGetValue method (String)

The TryGetValue method tries to get the value of the current header and put it in value.

Namespace:  Microsoft.Exchange.Data.Mime
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Function TryGetValue ( _
    <OutAttribute> ByRef value As String _
) As Boolean
'Usage
Dim instance As MimeHeaderReader
Dim value As String
Dim returnValue As Boolean

returnValue = instance.TryGetValue(value)
public bool TryGetValue(
    out string value
)

Parameters

  • value
    Type: System.String

    A string in which to store the value of this header.

Return value

Type: System.Boolean
The TryGetValue method returns true if it was able to decode the header. It returns false, and sets value to a null reference (Nothing in Visual Basic), if it was unable to decode the header.

See also

Reference

MimeHeaderReader structure

MimeHeaderReader members

TryGetValue overload

Microsoft.Exchange.Data.Mime namespace