AsymmetricAlgorithm.SignatureAlgorithm Eigenschaft

Definition

Ruft beim Implementieren in einer abgeleiteten Klasse den Namen des Signaturalgorithmus ab. Löst andernfalls immer eine NotImplementedException aus.

public:
 virtual property System::String ^ SignatureAlgorithm { System::String ^ get(); };
public:
 abstract property System::String ^ SignatureAlgorithm { System::String ^ get(); };
public virtual string? SignatureAlgorithm { get; }
public virtual string SignatureAlgorithm { get; }
public abstract string SignatureAlgorithm { get; }
member this.SignatureAlgorithm : string
Public Overridable ReadOnly Property SignatureAlgorithm As String
Public MustOverride ReadOnly Property SignatureAlgorithm As String

Eigenschaftswert

String

Der Name des Signaturalgorithmus.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie sie die SignatureAlgorithm Eigenschaft außer Kraft setzen, um den Namen des Signaturalgorithmus zurückzugeben. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die AsymmetricAlgorithm Klasse bereitgestellt wird.

    // This example uses the SHA1 algorithm.
    // Due to collision problems with SHA1, Microsoft recommends SHA256 or better.

public:
    property String^ SignatureAlgorithm
    {
        virtual String^ get() override
        {
            return "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
        }
    }
// This example uses the SHA1 algorithm.
// Due to collision problems with SHA1, Microsoft recommends SHA256 or better.
public override string SignatureAlgorithm 
{
    get {return "http://www.w3.org/2000/09/xmldsig#rsa-sha1";}
}
' This example uses the SHA1 algorithm.
' Due to collision problems with SHA1, Microsoft recommends SHA256 or better.
Public Overrides ReadOnly Property SignatureAlgorithm() As String
    Get
        Return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
    End Get
End Property

Gilt für

Siehe auch