UnconditionalSuppressMessageAttribute.MessageId Property


Gets or sets an optional argument expanding on exclusion criteria.

 property System::String ^ MessageId { System::String ^ get(); void set(System::String ^ value); };
public string? MessageId { get; set; }
member this.MessageId : string with get, set
Public Property MessageId As String

Property Value



The MessageId property is an optional argument that specifies additional exclusion where the literal metadata target is not sufficiently precise. For example, the UnconditionalSuppressMessageAttribute cannot be applied within a method, and it may be desirable to suppress a violation against a statement in the method that will give a rule violation, but not against all statements in the method.

Applies to