SuppressMessageAttribute.Scope SuppressMessageAttribute.Scope SuppressMessageAttribute.Scope SuppressMessageAttribute.Scope Property

Definition

Gets or sets the scope of the code that is relevant for the attribute.

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

Property Value

The scope of the code that is relevant for the attribute.

Remarks

The Scope property is an optional argument that specifies the metadata scope for which the attribute is relevant. Possible values for managed metadata include "member", "resource", "module", "type", "method", or "namespace". For more information about scopes, see Suppress code analysis warnings.

Applies to