ערוך

שתף באמצעות


RedactionStringBuilderExtensions.AppendRedacted Method

Definition

Overloads

AppendRedacted(StringBuilder, Redactor, ReadOnlySpan<Char>)

Redacts potentially sensitive data and appends it to a StringBuilder instance.

AppendRedacted(StringBuilder, Redactor, String)

Redacts potentially sensitive data and appends it to a StringBuilder instance.

AppendRedacted(StringBuilder, Redactor, ReadOnlySpan<Char>)

Source:
RedactionStringBuilderExtensions.cs
Source:
RedactionStringBuilderExtensions.cs

Redacts potentially sensitive data and appends it to a StringBuilder instance.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Text::StringBuilder ^ AppendRedacted(System::Text::StringBuilder ^ stringBuilder, Microsoft::Extensions::Compliance::Redaction::Redactor ^ redactor, ReadOnlySpan<char> value);
public static System.Text.StringBuilder AppendRedacted (this System.Text.StringBuilder stringBuilder, Microsoft.Extensions.Compliance.Redaction.Redactor redactor, ReadOnlySpan<char> value);
static member AppendRedacted : System.Text.StringBuilder * Microsoft.Extensions.Compliance.Redaction.Redactor * ReadOnlySpan<char> -> System.Text.StringBuilder
<Extension()>
Public Function AppendRedacted (stringBuilder As StringBuilder, redactor As Redactor, value As ReadOnlySpan(Of Char)) As StringBuilder

Parameters

stringBuilder
StringBuilder

Instance of StringBuilder to append the redacted value.

redactor
Redactor

The redactor that will redact the input value.

value
ReadOnlySpan<Char>

Value to redact.

Returns

The value of stringBuilder.

Exceptions

redactor is null.

Applies to

AppendRedacted(StringBuilder, Redactor, String)

Source:
RedactionStringBuilderExtensions.cs
Source:
RedactionStringBuilderExtensions.cs

Redacts potentially sensitive data and appends it to a StringBuilder instance.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Text::StringBuilder ^ AppendRedacted(System::Text::StringBuilder ^ stringBuilder, Microsoft::Extensions::Compliance::Redaction::Redactor ^ redactor, System::String ^ value);
public static System.Text.StringBuilder AppendRedacted (this System.Text.StringBuilder stringBuilder, Microsoft.Extensions.Compliance.Redaction.Redactor redactor, string? value);
static member AppendRedacted : System.Text.StringBuilder * Microsoft.Extensions.Compliance.Redaction.Redactor * string -> System.Text.StringBuilder
<Extension()>
Public Function AppendRedacted (stringBuilder As StringBuilder, redactor As Redactor, value As String) As StringBuilder

Parameters

stringBuilder
StringBuilder

Instance of StringBuilder to append the redacted value.

redactor
Redactor

The redactor that will redact the input value.

value
String

Value to redact.

Returns

The value of stringBuilder.

Exceptions

redactor is null.

Remarks

When the value is null nothing will be appended to the string builder.

Applies to