Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initialisiert eine neue Instanz der SignatureDescription-Klasse mit dem angegebenen SecurityElement.
Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Sub New ( _
el As SecurityElement _
)
'Usage
Dim el As SecurityElement
Dim instance As New SignatureDescription(el)
public SignatureDescription (
SecurityElement el
)
public:
SignatureDescription (
SecurityElement^ el
)
public SignatureDescription (
SecurityElement el
)
public function SignatureDescription (
el : SecurityElement
)
Parameter
- el
Das SecurityElement, aus dem die Algorithmen für die Signaturbeschreibung abgerufen werden.
Ausnahmen
| Ausnahmetyp | Bedingung |
|---|---|
Der el-Parameter ist NULL (Nothing in Visual Basic). |
Beispiel
Im folgenden Codebeispiel wird veranschaulicht, wie eine neue SignatureDescription-Klasse unter Verwendung
einer SecurityElement-Klasse mit den vier Algorithmen initialisiert wird. Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels für die SignatureDescription-Klasse.
Dim securityElement As New SecurityElement("DSASignature")
' Create new security elements for the four algorithms.
securityElement.AddChild(new SecurityElement( _
"Key", _
"System.Security.Cryptography.DSACryptoServiceProvider"))
securityElement.AddChild(New SecurityElement( _
"Digest", _
"System.Security.Cryptography.SHA1CryptoServiceProvider"))
securityElement.AddChild(new SecurityElement( _
"Formatter", _
"System.Security.Cryptography.DSASignatureFormatter"))
securityElement.AddChild(new SecurityElement( _
"Deformatter", _
"System.Security.Cryptography.DSASignatureDeformatter"))
Dim signatureDescription As New SignatureDescription(securityElement)
SecurityElement securityElement = new SecurityElement("DSASignature");
// Create new security elements for the four algorithms.
securityElement.AddChild(new SecurityElement(
"Key",
"System.Security.Cryptography.DSACryptoServiceProvider"));
securityElement.AddChild(new SecurityElement(
"Digest",
"System.Security.Cryptography.SHA1CryptoServiceProvider"));
securityElement.AddChild(new SecurityElement(
"Formatter",
"System.Security.Cryptography.DSASignatureFormatter"));
securityElement.AddChild(new SecurityElement(
"Deformatter",
"System.Security.Cryptography.DSASignatureDeformatter"));
SignatureDescription signatureDescription =
new SignatureDescription(securityElement);
SecurityElement^ securityElement = gcnew SecurityElement( L"DSASignature" );
// Create new security elements for the four algorithms.
securityElement->AddChild( gcnew SecurityElement(
L"Key",L"System.Security.Cryptography.DSACryptoServiceProvider" ) );
securityElement->AddChild( gcnew SecurityElement(
L"Digest",L"System.Security.Cryptography.SHA1CryptoServiceProvider" ) );
securityElement->AddChild( gcnew SecurityElement(
L"Formatter",L"System.Security.Cryptography.DSASignatureFormatter" ) );
securityElement->AddChild( gcnew SecurityElement(
L"Deformatter",L"System.Security.Cryptography.DSASignatureDeformatter" ) );
SignatureDescription^ signatureDescription =
gcnew SignatureDescription( securityElement );
SecurityElement securityElement = new SecurityElement("DSASignature");
// Create new security elements for the four algorithms.
securityElement.AddChild(new SecurityElement("Key",
"System.Security.Cryptography.DSACryptoServiceProvider"));
securityElement.AddChild(new SecurityElement("Digest",
"System.Security.Cryptography.SHA1CryptoServiceProvider"));
securityElement.AddChild(new SecurityElement("Formatter",
"System.Security.Cryptography.DSASignatureFormatter"));
securityElement.AddChild(new SecurityElement("Deformatter",
"System.Security.Cryptography.DSASignatureDeformatter"));
SignatureDescription signatureDescription
= new SignatureDescription(securityElement);
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
SignatureDescription-Klasse
SignatureDescription-Member
System.Security.Cryptography-Namespace