CryptoSys PKI Pro Manual

Smime.Query Method

Query an S/MIME entity for selected information.

Syntax

[C#]
public static string Query(
   string inputFile,
   string query 
)
[VB]
Public Shared Function Query (
   inputFile As String,
   query As String 
) As String

Parameters

inputFile  String
Name of file containing S/MIME entity
query  String
Query string (case insensitive)

Return Value

String containing the result or an empty string if not found or error.

Remarks

Valid queries are:

QueryResult
"content-type"Value of Content-Type, e.g. "application/pkcs7-mime".
"smime-type"Value of smime-type parameter of Content-Type, e.g. , e.g. "enveloped-data".
"encoding"Value of Content-Transfer-Encoding, e.g. "base64".
"name"Value of name parameter of Content-Type, e.g. "smime.p7m"
"filename"Value of filename parameter of Content-Disposition, e.g. "smime.p7m".

See Also

VB6/C equivalent: SMIME_Query

[Contents] [Index]

[PREV: Smime.Extract Method...]   [Contents]   [Index]   
   [NEXT: Smime.Wrap Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-17T11:18:15Z.