NullRedactor.Redact Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Redact(String) |
Redacts potentially sensitive data. |
Redact(ReadOnlySpan<Char>, Span<Char>) |
Redacts potentially sensitive data. |
- Source:
- NullRedactor.cs
Redacts potentially sensitive data.
public:
override System::String ^ Redact(System::String ^ source);
C#
public override string Redact(string? source);
override this.Redact : string -> string
Public Overrides Function Redact (source As String) As String
Parameters
- source
- String
Value to redact.
Returns
Redacted value.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- Source:
- NullRedactor.cs
Redacts potentially sensitive data.
public:
override int Redact(ReadOnlySpan<char> source, Span<char> destination);
C#
public override int Redact(ReadOnlySpan<char> source, Span<char> destination);
override this.Redact : ReadOnlySpan<char> * Span<char> -> int
Public Overrides Function Redact (source As ReadOnlySpan(Of Char), destination As Span(Of Char)) As Integer
Parameters
- source
- ReadOnlySpan<Char>
Value to redact.
Returns
Number of characters produced when redacting the given source input.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: