AsymmetricAlgorithm.SignatureAlgorithm Property

 

When implemented in a derived class, gets the name of the signature algorithm. Otherwise, always throws a NotImplementedException.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public virtual string SignatureAlgorithm { get; }

Property Value

Type: System.String

The name of the signature algorithm.

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.

public override string SignatureAlgorithm 
{
    get {return "http://www.w3.org/2000/09/xmldsig#rsa-sha1";}
}

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top
Show: