FileInfoExtensionsGetSignatureObject Method
Gets PKCS#7 signature object of signed file. If file is not signed using authenticode signature, the method return null.
Namespace: SysadminsLV.PKI.Utils.CLRExtensionsAssembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
public static DefaultSignedPkcs7 GetSignatureObject(
this FileInfo fileInfo
)
<ExtensionAttribute>
Public Shared Function GetSignatureObject (
fileInfo As FileInfo
) As DefaultSignedPkcs7
public:
[ExtensionAttribute]
static DefaultSignedPkcs7^ GetSignatureObject(
FileInfo^ fileInfo
)
[<ExtensionAttribute>]
static member GetSignatureObject :
fileInfo : FileInfo -> DefaultSignedPkcs7
- fileInfo FileInfo
- An instance of file object.
DefaultSignedPkcs7Detached signature object.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).