ManifestSignatureInformation.VerifySignature Method

Definition

Gathers and verifies information about the signatures of the specified manifests.

Overloads

VerifySignature(ActivationContext)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context.

VerifySignature(ActivationContext, ManifestKinds)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type.

VerifySignature(ActivationContext, ManifestKinds, X509RevocationFlag, X509RevocationMode)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type, and allows certificates to be selected for revocation.

VerifySignature(ActivationContext)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context.

C#
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature(ActivationContext application);

Parameters

application
ActivationContext

The activation context of the manifest. Activation contexts belong to an application and contain multiple manifests.

Returns

A collection that contains a ManifestSignatureInformation object for each manifest that is verified.

Exceptions

The application parameter is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

VerifySignature(ActivationContext, ManifestKinds)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type.

C#
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature(ActivationContext application, System.Security.ManifestKinds manifests);

Parameters

application
ActivationContext

The activation context of the manifest. Activation contexts belong to an application and contain multiple manifests.

manifests
ManifestKinds

The type of manifest. This parameter specifies which manifests in the activation context you want to verify.

Returns

A collection that contains a ManifestSignatureInformation object for each manifest that is verified.

Exceptions

The application parameter is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

VerifySignature(ActivationContext, ManifestKinds, X509RevocationFlag, X509RevocationMode)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type, and allows certificates to be selected for revocation.

C#
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature(ActivationContext application, System.Security.ManifestKinds manifests, System.Security.Cryptography.X509Certificates.X509RevocationFlag revocationFlag, System.Security.Cryptography.X509Certificates.X509RevocationMode revocationMode);
C#
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature(ActivationContext application, System.Security.ManifestKinds manifests, System.Security.Cryptography.X509Certificates.X509RevocationFlag revocationFlag, System.Security.Cryptography.X509Certificates.X509RevocationMode revocationMode);

Parameters

application
ActivationContext

The application context of the manifests. Activation contexts belong to an application and contain multiple manifests.

manifests
ManifestKinds

The type of manifest. This parameter specifies which manifests in the activation context you want to verify.

revocationFlag
X509RevocationFlag

One of the enumeration values that specifies which certificates in the chain are checked for revocation. The default is ExcludeRoot.

revocationMode
X509RevocationMode

Determines whether the X.509 verification should look online for revocation lists.

Returns

A collection that contains a ManifestSignatureInformation object for each manifest that is verified.

Attributes

Exceptions

The application parameter is null.

A value specified for the revocationFlag or revocationMode parameter is invalid.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1