RedactionStringBuilderExtensions.AppendRedacted 方法

定义

重载

AppendRedacted(StringBuilder, Redactor, ReadOnlySpan<Char>)

对潜在的敏感数据进行修订,并将其追加到 StringBuilder 实例。

AppendRedacted(StringBuilder, Redactor, String)

对潜在的敏感数据进行修订,并将其追加到 StringBuilder 实例。

AppendRedacted(StringBuilder, Redactor, ReadOnlySpan<Char>)

Source:
RedactionStringBuilderExtensions.cs
Source:
RedactionStringBuilderExtensions.cs

对潜在的敏感数据进行修订,并将其追加到 StringBuilder 实例。

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

参数

stringBuilder
StringBuilder

StringBuilder用于追加已修订值的 的实例。

redactor
Redactor

将编辑输入值的重修函数。

value
ReadOnlySpan<Char>

要修订的值。

返回

stringBuilder 的值。

例外

redactornull

适用于

AppendRedacted(StringBuilder, Redactor, String)

Source:
RedactionStringBuilderExtensions.cs
Source:
RedactionStringBuilderExtensions.cs

对潜在的敏感数据进行修订,并将其追加到 StringBuilder 实例。

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

参数

stringBuilder
StringBuilder

StringBuilder用于追加已修订值的 的实例。

redactor
Redactor

将编辑输入值的重修函数。

value
String

要修订的值。

返回

stringBuilder 的值。

例外

redactornull

注解

当 为 时nullvalue不会将任何内容追加到字符串生成器。

适用于