Share via


MimeParameter.TryGetValue method (String)

The TryGetValue method puts the value of this MimeParameter object into value, but does not throw an exception if the encoding is unsupported.

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 MimeParameter
Dim value As String
Dim returnValue As Boolean

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

Parameters

  • value
    Type: System.String

    The string in which to put the value of this MimeParameter object if decoding is successful.

Return value

Type: System.Boolean
The TryGetValue method returns true if decoding was successful, in which case value contains the Multipurpose Internet Mail Extensions (MIME) part value. It returns false if the decoding was unsuccessful, in which case value is empty.

See also

Reference

MimeParameter class

MimeParameter members

TryGetValue overload

Microsoft.Exchange.Data.Mime namespace