HMACSHA384.ProduceLegacyHmacValues Proprietà

Definizione

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 , che non è coerente con l'implementazione di .NET Framework 2.0 Service Pack 1 dell'algoritmo.

public:
 property bool ProduceLegacyHmacValues { bool get(); void set(bool value); };
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}")]
public bool ProduceLegacyHmacValues { get; set; }
member this.ProduceLegacyHmacValues : bool with 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
Public Property ProduceLegacyHmacValues As Boolean

Valore della proprietà

true per consentire alle applicazioni .NET Framework 2.0 Service Pack 1 di interagire con le applicazioni .NET Framework 2.0; in caso contrario, false.

Attributi

Commenti

Lo scopo della ProduceLegacyHmacValues proprietà booleana è consentire alle applicazioni .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 che corrispondono 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.  
    // ...
}  

Si applica a

Vedi anche