Condividi tramite


Redactor.TryRedact<T> Metodo

Definizione

Tenta di redattivare i dati potenzialmente sensibili.

public bool TryRedact<T> (T value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider = default);
member this.TryRedact : 'T * Span<char> * int * ReadOnlySpan<char> * IFormatProvider -> bool
Public Function TryRedact(Of T) (value As T, destination As Span(Of Char), ByRef charsWritten As Integer, format As ReadOnlySpan(Of Char), Optional provider As IFormatProvider = Nothing) As Boolean

Parametri di tipo

T

Tipo di valore da ripetere.

Parametri

value
T

Valore da ripetere.

destination
Span<Char>

Buffer in cui eseguire la modifica.

charsWritten
Int32

Quando termina, questo metodo contiene il numero di caratteri scritti nel buffer di destinazione.

format
ReadOnlySpan<Char>

Stringa di formato che seleziona l'operazione di formattazione specifica eseguita. Fare riferimento alla documentazione del tipo formattato per comprendere i valori che è possibile specificare qui.

provider
IFormatProvider

Provider di formato utilizzato per produrre una stringa che rappresenta il valore.

Restituisce

true se il buffer di destinazione è sufficientemente grande, in caso contrario false.

Si applica a