다음을 통해 공유


MimeHeaderReader.TryGetValue Method (out 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
public bool TryGetValue (
    out string value
)
public:
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 in which to store the value of this header.

Return Value

The TryGetValue method returns true if it was able to decode the header. It returns false, and sets value to null, if it was unable to decode the 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