UnconditionalSuppressMessageAttribute.MessageId Property
Definition
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.
Gets or sets an optional argument expanding on exclusion criteria.
public:
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
Remarks
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.