Partager via


Header.TryGetValue Method

The TryGetValue method tries to get the value of this Header object. TryGetValue does not throw an exception if it fails

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

Syntax

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

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

Parameters

Return Value

Type: System.Boolean
The TryGetValue method returns false if it is unable to return the value of the current header.