다음을 통해 공유


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
public virtual bool TryGetValue (
    out string value
)
public:
virtual bool TryGetValue (
    [OutAttribute] String^% value
)
public boolean TryGetValue (
    /** @attribute OutAttribute() */ /** @ref */ String value
)
JScript does not support passing value-type arguments by reference.

Parameters

  • value
    A String object to fill with the value of the current header.

Return Value

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003