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