AsymmetricAlgorithm.SignatureAlgorithm Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When implemented in a derived class, gets the name of the signature algorithm. Otherwise, always throws a NotImplementedException.
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 : stringPublic Overridable ReadOnly Property SignatureAlgorithm As StringPublic MustOverride ReadOnly Property SignatureAlgorithm As StringProperty Value
The name of the signature algorithm.
Examples
The following code example demonstrates how to override the SignatureAlgorithm property to return the name of the signature algorithm. This code example is part of a larger example provided for the AsymmetricAlgorithm class.
// 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