AsymmetricAlgorithm.SignatureAlgorithm プロパティ
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
派生クラスで実装された場合、署名アルゴリズムの名前を取得します。 それ以外の場合は、常に NotImplementedException をスローします。
public:
virtual property System::String ^ SignatureAlgorithm { System::String ^ get(); };
public:
abstract property System::String ^ SignatureAlgorithm { System::String ^ get(); };
C#
public virtual string? SignatureAlgorithm { get; }
C#
public virtual string SignatureAlgorithm { get; }
C#
public abstract string SignatureAlgorithm { get; }
member this.SignatureAlgorithm : string
Public Overridable ReadOnly Property SignatureAlgorithm As String
Public MustOverride ReadOnly Property SignatureAlgorithm As String
署名アルゴリズムの名前。
次のコード例では、 プロパティをオーバーライド SignatureAlgorithm して署名アルゴリズムの名前を返す方法を示します。 このコード例は、AsymmetricAlgorithm クラスのために提供されている大規模な例の一部です。
// 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";
}
}
C#
// 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
製品 | バージョン |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。