FileInfoExtensionsGetSignatureObject Method

Gets PKCS#7 signature object of signed file. If file is not signed using authenticode signature, the method return null.

Definition

Namespace: SysadminsLV.PKI.Utils.CLRExtensions
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
public static DefaultSignedPkcs7 GetSignatureObject(
	this FileInfo fileInfo
)

Parameters

fileInfo  FileInfo
An instance of file object.

Return Value

DefaultSignedPkcs7
Detached signature object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also