This documentation is archived and is not being maintained.

PackageDigitalSignatureManager.PackageDigitalSignatureManager Constructor

Initializes a new instance of the PackageDigitalSignatureManager class for use with a specified Package.

Namespace: System.IO.Packaging
Assembly: WindowsBase (in windowsbase.dll)

public PackageDigitalSignatureManager (
	Package package
)
public PackageDigitalSignatureManager (
	Package package
)
public function PackageDigitalSignatureManager (
	package : Package
)
You cannot use constructors in XAML.

Parameters

package

The package associated with this signature manager.

The target package associated with the signature manager is set during initialization. After it is set, the package associated with the signature manager cannot be changed. Create a new signature manager for each package as needed.

The following example shows how to use this constructor. For the complete sample, see Creating a Package with a Digital Signature Sample.

// Create the DigitalSignature Manager
PackageDigitalSignatureManager dsm =
    new PackageDigitalSignatureManager(package);
dsm.CertificateOption =
    CertificateEmbeddingOption.InSignaturePart;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: