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

המונה לחזרה.

 Ελληνικά