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
- Overlapped.cs
- EDesignUtil.cs
- HwndHostAutomationPeer.cs
- Contracts.cs
- Size3DConverter.cs
- DataGridViewCheckBoxColumn.cs
- HostUtils.cs
- PrimarySelectionAdorner.cs
- TerminatorSinks.cs
- IssuanceTokenProviderState.cs
- Attribute.cs
- TypeSemantics.cs
- PersonalizationEntry.cs
- OleDbReferenceCollection.cs
- ContractType.cs
- MessageQueueConverter.cs
- WebPartsPersonalizationAuthorization.cs
- TileBrush.cs
- DependencyObjectPropertyDescriptor.cs
- UxThemeWrapper.cs
- Button.cs
- CacheAxisQuery.cs
- TextTreeText.cs
- PermissionListSet.cs
- XmlObjectSerializerContext.cs
- IPAddressCollection.cs
- Glyph.cs
- InternalRelationshipCollection.cs
- SystemIPInterfaceStatistics.cs
- ConfigurationSection.cs
- Duration.cs
- DispatcherFrame.cs
- RetrieveVirtualItemEventArgs.cs
- IdentityManager.cs
- HtmlInputRadioButton.cs
- OleStrCAMarshaler.cs
- ProcessInfo.cs
- CorrelationKeyCalculator.cs
- XmlCharCheckingReader.cs
- PriorityQueue.cs
- SafeCryptContextHandle.cs
- CapabilitiesState.cs
- BlurBitmapEffect.cs
- Roles.cs
- BaseTemplateParser.cs
- SizeAnimation.cs
- IncrementalCompileAnalyzer.cs
- BitmapImage.cs
- UpdateProgress.cs
- DesignerRegionMouseEventArgs.cs
- ColumnResult.cs
- TreeView.cs
- InteropAutomationProvider.cs
- XmlSchemaParticle.cs
- UserControlAutomationPeer.cs
- ExpressionNode.cs
- OdbcConnectionFactory.cs
- MediaElementAutomationPeer.cs
- FlowDocument.cs
- CollectionAdapters.cs
- ConnectionOrientedTransportManager.cs
- FeatureAttribute.cs
- UIElementPropertyUndoUnit.cs
- SessionStateModule.cs
- FixedSOMTableRow.cs
- PageOutputColor.cs
- smtppermission.cs
- TextEffectCollection.cs
- BrowserDefinitionCollection.cs
- ScrollData.cs
- LocatorManager.cs
- PropertyToken.cs
- StylusCollection.cs
- WebPartEditorOkVerb.cs
- ContainerControlDesigner.cs
- CompositeTypefaceMetrics.cs
- SettingsAttributes.cs
- ConfigXmlWhitespace.cs
- ResourcePermissionBase.cs
- SimpleFieldTemplateFactory.cs
- IISMapPath.cs
- AlphaSortedEnumConverter.cs
- ConnectionProviderAttribute.cs
- StorageMappingItemLoader.cs
- ProcessModule.cs
- DispatcherHooks.cs
- Rotation3D.cs
- wgx_commands.cs
- IgnoreDeviceFilterElement.cs
- FilteredXmlReader.cs
- RelOps.cs
- GorillaCodec.cs
- MsmqTransportElement.cs
- DataGridCellsPanel.cs
- Route.cs
- KerberosSecurityTokenAuthenticator.cs
- SecurityTokenAuthenticator.cs
- GroupQuery.cs
- WindowShowOrOpenTracker.cs
- CopyEncoder.cs