SignatureDescription コンストラクター

定義

SignatureDescription クラスの新しいインスタンスを初期化します。Initializes a new instance of the SignatureDescription class.

オーバーロード

SignatureDescription()

SignatureDescription クラスの新しいインスタンスを初期化します。Initializes a new instance of the SignatureDescription class.

SignatureDescription(SecurityElement)

指定した SignatureDescription から SecurityElement クラスの新しいインスタンスを初期化します。Initializes a new instance of the SignatureDescription class from the specified SecurityElement.

SignatureDescription()

SignatureDescription クラスの新しいインスタンスを初期化します。Initializes a new instance of the SignatureDescription class.

public:
 SignatureDescription();
public SignatureDescription ();
Public Sub New ()

既定の SignatureDescription コンストラクターを呼び出す方法を次のコード例に示します。The following code example demonstrates how to call the default SignatureDescription constructor. このコード例は、SignatureDescription クラス用に用意されている大規模な例の一部です。This code example is part of a larger example provided for the SignatureDescription class.

SignatureDescription^ signatureDescription = gcnew SignatureDescription;
SignatureDescription signatureDescription = 
    new SignatureDescription();
Dim signatureDescription As New SignatureDescription

こちらもご覧ください

SignatureDescription(SecurityElement)

指定した SignatureDescription から SecurityElement クラスの新しいインスタンスを初期化します。Initializes a new instance of the SignatureDescription class from the specified SecurityElement.

public:
 SignatureDescription(System::Security::SecurityElement ^ el);
public SignatureDescription (System.Security.SecurityElement el);
new System.Security.Cryptography.SignatureDescription : System.Security.SecurityElement -> System.Security.Cryptography.SignatureDescription
Public Sub New (el As SecurityElement)

パラメーター

el
SecurityElement

署名の説明に対するアルゴリズムの取得元の SecurityElementThe SecurityElement from which to get the algorithms for the signature description.

例外

el パラメーターが null です。The el parameter is null.

次のコード例は、を使用して新しい SignatureDescription クラスを初期化する方法を示しています。The following code example demonstrates how to initialize a new SignatureDescription class using a

4つのアルゴリズムを含む SecurityElementSecurityElement containing the four algorithms. このコード例は、SignatureDescription クラス用に用意されている大規模な例の一部です。This code example is part of a larger example provided for the SignatureDescription class.

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

こちらもご覧ください

適用対象