Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Diagnostics / CodeAnalysis / SuppressMessageAttribute.cs / 1 / SuppressMessageAttribute.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: SuppressMessageAttribute
**
**
** An attribute to suppress violation messages/warnings
** by static code analysis tools.
**
**
===========================================================*/
using System;
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(
AttributeTargets.All,
Inherited = false,
AllowMultiple = true
)
]
[Conditional("CODE_ANALYSIS")]
public sealed class SuppressMessageAttribute : Attribute
{
private string category;
private string justification;
private string checkId;
private string scope;
private string target;
private string messageId;
public SuppressMessageAttribute(string category, string checkId)
{
this.category = category;
this.checkId = checkId;
}
public string Category
{
get { return category; }
}
public string CheckId
{
get { return checkId; }
}
public string Scope
{
get { return scope; }
set { scope = value; }
}
public string Target
{
get { return target; }
set { target = value; }
}
public string MessageId
{
get { return messageId; }
set { messageId = value; }
}
public string Justification
{
get { return justification; }
set { justification = value; }
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Control.cs
- CollectionBuilder.cs
- ErrorHandlerModule.cs
- Geometry.cs
- ExpressionNode.cs
- GridViewCellAutomationPeer.cs
- EditBehavior.cs
- AmbientValueAttribute.cs
- XmlComment.cs
- DefaultClaimSet.cs
- CodeTypeDelegate.cs
- XmlSchemaValidator.cs
- Ray3DHitTestResult.cs
- TextTreeFixupNode.cs
- TypeBuilderInstantiation.cs
- RuleInfoComparer.cs
- ProtectedConfigurationSection.cs
- MarshalByRefObject.cs
- XmlSubtreeReader.cs
- MLangCodePageEncoding.cs
- HttpServerVarsCollection.cs
- CodeDirectoryCompiler.cs
- DataViewManagerListItemTypeDescriptor.cs
- BlockCollection.cs
- EditorPartDesigner.cs
- Privilege.cs
- PropertyHelper.cs
- Comparer.cs
- HtmlInputControl.cs
- DataTableMapping.cs
- ECDiffieHellmanCng.cs
- PointConverter.cs
- RemoteX509AsymmetricSecurityKey.cs
- GenerateScriptTypeAttribute.cs
- DataBoundLiteralControl.cs
- XmlMembersMapping.cs
- CreateSequence.cs
- ParseElement.cs
- ContainsRowNumberChecker.cs
- SocketAddress.cs
- DefaultHttpHandler.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- FixedSOMImage.cs
- AttributeCollection.cs
- ImportContext.cs
- WindowsEditBox.cs
- HttpClientCredentialType.cs
- EntityException.cs
- COM2PropertyBuilderUITypeEditor.cs
- SqlCommandSet.cs
- ChangeNode.cs
- ExtentCqlBlock.cs
- XmlArrayItemAttribute.cs
- MenuItemStyle.cs
- XmlDataSourceView.cs
- ProviderMetadata.cs
- MouseEvent.cs
- FormsAuthenticationUserCollection.cs
- SecurityResources.cs
- StringUtil.cs
- NodeLabelEditEvent.cs
- GZipDecoder.cs
- BordersPage.cs
- BidirectionalDictionary.cs
- DBConcurrencyException.cs
- ParenthesizePropertyNameAttribute.cs
- Label.cs
- MobileControlBuilder.cs
- StyleCollection.cs
- DesignerActionUIStateChangeEventArgs.cs
- ToolStripRenderer.cs
- KnownTypeHelper.cs
- WorkflowInstanceProvider.cs
- LambdaCompiler.Lambda.cs
- WindowsToolbar.cs
- LoadWorkflowByInstanceKeyCommand.cs
- ValidationRuleCollection.cs
- EdmProperty.cs
- VideoDrawing.cs
- XmlNamedNodeMap.cs
- XmlSchemaAll.cs
- ProgressBar.cs
- ToolStripPanelSelectionBehavior.cs
- AutoResizedEvent.cs
- ErrorInfoXmlDocument.cs
- Clock.cs
- Timer.cs
- TreeIterators.cs
- odbcmetadatafactory.cs
- ContainerUIElement3D.cs
- SafeSystemMetrics.cs
- CodeAttachEventStatement.cs
- MimeObjectFactory.cs
- GregorianCalendarHelper.cs
- EpmContentSerializer.cs
- SocketStream.cs
- RowToFieldTransformer.cs
- TypeConstant.cs
- FlowchartDesigner.Helpers.cs
- HostingPreferredMapPath.cs