WorkbookBase.Signatures (Propiedad)

Obtiene la colección de firmas digitales para el libro.

Espacio de nombres:  Microsoft.Office.Tools.Excel
Ensamblado:  Microsoft.Office.Tools.Excel.v4.0.Utilities (en Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Sintaxis

'Declaración
Public ReadOnly Property Signatures As SignatureSet
public SignatureSet Signatures { get; }

Valor de propiedad

Tipo: Microsoft.Office.Core.SignatureSet
Colección Microsoft.Office.Core.SignatureSet que contiene las firmas digitales para el libro.

Comentarios

Para firmar digitalmente libros de Excel y comprobar otras firmas existentes en ellos, necesita Microsoft CryptoAPI y un certificado de firma digital único.CryptoAPI se instala con Microsoft Internet Explorer 4.01 o posteriores.Puede obtener un certificado de firma digital de una entidad emisora de certificados.

Ejemplos

En el ejemplo de código siguiente se obtiene el número de firmas que están asociadas al libro activo y se muestra un mensaje adecuado al usuario.

Se trata de un ejemplo para una personalización en el nivel del documento.

Private Sub GetSignatures()
    If Me.Signatures.Count = 0 Then
        MessageBox.Show( _
            "There are no signatures that are attached to the " _
            + "current workbook.")
    Else
        MessageBox.Show( _
            "Number of signatures attached to the current workbook: " _
            + Me.Signatures.Count.ToString())
    End If
End Sub
private void GetSignatures()
{
    if (this.Signatures.Count == 0)
    {
        MessageBox.Show(
            "There are no signatures that are attached to the " 
            + "current workbook.");
    }
    else
    {
        MessageBox.Show(
            "Number of signatures attached to the current workbook: "
            + this.Signatures.Count.ToString());
    }
}

Seguridad de .NET Framework

Vea también

Referencia

WorkbookBase Clase

Microsoft.Office.Tools.Excel (Espacio de nombres)