HMACSHA384.ProduceLegacyHmacValues Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Attenzione
ProduceLegacyHmacValues is obsolete. Producing legacy HMAC values is not supported.
Fornisce una soluzione alternativa per l'implementazione di .NET Framework 2.0 dell'algoritmo HMACSHA384, incoerente con l'implementazione .NET Framework 2.0 Service Pack 1 dell'algoritmo.
public:
property bool ProduceLegacyHmacValues { bool get(); void set(bool value); };
[System.Obsolete("ProduceLegacyHmacValues is obsolete. Producing legacy HMAC values is not supported.", DiagnosticId="SYSLIB0029", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public bool ProduceLegacyHmacValues { get; set; }
public bool ProduceLegacyHmacValues { get; set; }
[<System.Obsolete("ProduceLegacyHmacValues is obsolete. Producing legacy HMAC values is not supported.", DiagnosticId="SYSLIB0029", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ProduceLegacyHmacValues : bool with get, set
member this.ProduceLegacyHmacValues : bool with get, set
Public Property ProduceLegacyHmacValues As Boolean
Valore della proprietà
true per consentire alle applicazioni .NET Framework 2.0 Service Pack 1 di interagire con .NET Framework 2.0; in caso contrario, false.
- Attributi
Commenti
Lo scopo della proprietà booleana ProduceLegacyHmacValues è consentire alle applicazioni di .NET Framework 2.0 Service Pack 1 di interagire con le applicazioni .NET Framework 2.0. Quando si imposta questa proprietà su true, l'oggetto HMACSHA384 produce valori corrispondenti ai valori prodotti da .NET Framework 2.0. È consigliabile impostare questa proprietà una sola volta dopo aver creato l'oggetto HMAC. Sarà necessario reimpostare la chiave in un secondo momento, come illustrato nell'esempio seguente.
public static void Test()
{
var hmac = new HMACSHA384();
hmac.ProduceLegacyHmacValues = true;
hmac.Key = // ...Get the HMAC key.
// ...
// Use the HMAC algorithm.
// ...
}