| ParameterListTryGetValue(String, Parameter) Method |
Get the parameter with the specified name.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public bool TryGetValue(
string name,
out Parameter param
)
Parameters
- name String
- The parameter name.
- param Parameter
- The parameter.
Return Value
Booleantrue if the parameter exists; otherwise,
false.
Exceptions Remarks
Gets the parameter with the specified name.
Example
if (part.ContentDisposition.Parameters.TryGetValue ("filename", out var parameter))
parameter.EncodingMehod = ParameerEncodngMethod.Rfc2047;
See Also