다음을 통해 공유


WorkbookBase.Signatures 속성

통합 문서의 디지털 서명 컬렉션을 가져옵니다.

네임스페이스:  Microsoft.Office.Tools.Excel
어셈블리:  Microsoft.Office.Tools.Excel.v4.0.Utilities(Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

구문

‘선언
Public ReadOnly Property Signatures As SignatureSet
    Get
public SignatureSet Signatures { get; }

속성 값

형식: Microsoft.Office.Core.SignatureSet
통합 문서의 디지털 서명이 들어 있는 Microsoft.Office.Core.SignatureSet 컬렉션입니다.

설명

Excel 통합 문서를 디지털 서명하고 해당 통합 문서의 다른 서명을 확인하려면 Microsoft CryptoAPI와 고유한 디지털 서명 인증서가 있어야 합니다. CryptoAPI는 Microsoft Internet Explorer 4.01 이상을 설치할 때 함께 설치됩니다. 디지털 서명 인증서는 인증 기관으로부터 얻을 수 있습니다.

예제

다음 코드 예제에서는 현재 통합 문서에 연결된 서명 수를 가져오고 사용자에게 적절한 메시지를 표시합니다.

이 예제는 문서 수준 사용자 지정을 위한 것입니다.

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());
    }
}

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

WorkbookBase 클래스

Microsoft.Office.Tools.Excel 네임스페이스