Class DigitalSignatureCollection

Class DigitalSignatureCollection

Namespace: Aspose.Cells.DigitalSignatures
Assembly: Aspose.Cells.dll (25.2.0)

مجموعه‌ای از امضاهای دیجیتال پیوست شده به یک سند را فراهم می‌کند.

public class DigitalSignatureCollection : IEnumerable

وراثت

objectDigitalSignatureCollection

پیاده‌سازی‌ها

IEnumerable

اعضای به ارث رسیده

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

مثال‌ها

مثال زیر نشان می‌دهد که چگونه امضای دیجیتال را اعتبارسنجی کنیم.

//workbook from a signed source file
Workbook signedWorkbook = new Workbook(@"signedFile.xlsx");
//wb.IsDigitallySigned is true when the workbook is signed already.
Console.WriteLine(signedWorkbook.IsDigitallySigned);
//get digitalSignature collection from workbook
DigitalSignatureCollection existingDsc = signedWorkbook.GetDigitalSignature();
foreach (DigitalSignature existingDs in existingDsc)
{
    Console.WriteLine(existingDs.Comments);
    Console.WriteLine(existingDs.SignTime);
    Console.WriteLine(existingDs.IsValid);
}
'workbook from a signed source file
Dim signedWorkbook As Workbook = New Workbook("newfile.xlsx")
'Workbook.IsDigitallySigned is true when the workbook is signed already.
Console.WriteLine(signedWorkbook.IsDigitallySigned)
'get digitalSignature collection from workbook
Dim existingDsc As DigitalSignatureCollection = signedWorkbook.GetDigitalSignature()
Dim existingDs As DigitalSignature
For Each existingDs In existingDsc
    Console.WriteLine(existingDs.Comments)
    Console.WriteLine(existingDs.SignTime)
    Console.WriteLine(existingDs.IsValid)
Next

سازنده‌ها

DigitalSignatureCollection()

سازنده DigitalSignatureCollection.

public DigitalSignatureCollection()

متدها

Add(DigitalSignature)

یک امضا به DigitalSignatureCollection اضافه کنید.

public void Add(DigitalSignature digitalSignature)

پارامترها

digitalSignature DigitalSignature

امضای دیجیتال در مجموعه.

GetEnumerator()

معدودکننده‌ای برای DigitalSignatureCollection دریافت کنید، این معدودکننده اجازه می‌دهد که بر روی مجموعه تکرار کنید.

public IEnumerator GetEnumerator()

بازگشت

IEnumerator

معدودکننده برای تکرار.

 فارسی