# RedactConnectionStringAttribute

Package: [Microsoft.Orleans.Core](/orleans/docs/api/csharp/microsoft.orleans.core/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/OptionLogger/RedactMemberAttribute.cs#L27)

```csharp
public class RedactConnectionStringAttribute : RedactAttribute
```

When applied to a connection string property on an options class, this attribute prevents the property value from being formatted by conforming [IOptionFormatter](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.ioptionformatter/) instances.

## Constructors

- [RedactConnectionStringAttribute](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.redactconnectionstringattribute/constructors/constructor-8450cb5d/)

## Methods

- [Redact(object)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.redactconnectionstringattribute/methods/redact-object-c8b45191/)
