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
- AffineTransform3D.cs
- Char.cs
- ComponentCollection.cs
- CurrencyManager.cs
- SqlInternalConnectionSmi.cs
- _KerberosClient.cs
- GC.cs
- Int32KeyFrameCollection.cs
- StrongName.cs
- ServiceOperationWrapper.cs
- QuaternionIndependentAnimationStorage.cs
- ValidatingReaderNodeData.cs
- TableLayoutStyle.cs
- BitmapDownload.cs
- FormatConvertedBitmap.cs
- DataGridViewCheckBoxColumn.cs
- PropertyMapper.cs
- ImmComposition.cs
- HttpHandler.cs
- DoubleUtil.cs
- XPathConvert.cs
- FixedSchema.cs
- ResetableIterator.cs
- ResourcePart.cs
- WindowsListViewSubItem.cs
- ConfigXmlCDataSection.cs
- AssemblyHash.cs
- TextRangeSerialization.cs
- SendKeys.cs
- DataControlField.cs
- TextBox.cs
- PreloadHost.cs
- PackWebRequest.cs
- XmlArrayItemAttribute.cs
- ReadonlyMessageFilter.cs
- FormatException.cs
- Span.cs
- ButtonPopupAdapter.cs
- SingleTagSectionHandler.cs
- InputReportEventArgs.cs
- NativeMethods.cs
- ReadOnlyActivityGlyph.cs
- TableProviderWrapper.cs
- TransformDescriptor.cs
- AgileSafeNativeMemoryHandle.cs
- OracleMonthSpan.cs
- SortedDictionary.cs
- BitmapEffectGeneralTransform.cs
- MissingMemberException.cs
- MD5CryptoServiceProvider.cs
- TextSpanModifier.cs
- AttributeEmitter.cs
- SynchronizedDispatch.cs
- UseManagedPresentationBindingElementImporter.cs
- XmlSerializerSection.cs
- FileSystemEventArgs.cs
- RegistryHandle.cs
- TreeNodeEventArgs.cs
- MasterPage.cs
- SelectorAutomationPeer.cs
- Panel.cs
- ShapeTypeface.cs
- TextElementAutomationPeer.cs
- ZoneButton.cs
- Point3DAnimationUsingKeyFrames.cs
- QuotaThrottle.cs
- SectionXmlInfo.cs
- GridViewPageEventArgs.cs
- ZoneMembershipCondition.cs
- DeflateStream.cs
- Mapping.cs
- ProfileGroupSettingsCollection.cs
- HelpExampleGenerator.cs
- ColorTranslator.cs
- ValidationPropertyAttribute.cs
- FamilyMapCollection.cs
- NonceCache.cs
- Scene3D.cs
- NodeFunctions.cs
- DesignerSerializationOptionsAttribute.cs
- MessageSecurityOverTcpElement.cs
- UserInitiatedNavigationPermission.cs
- PassportAuthenticationModule.cs
- DescendentsWalkerBase.cs
- PropertyStore.cs
- cookie.cs
- OpCodes.cs
- MappingModelBuildProvider.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- Util.cs
- ImageIndexConverter.cs
- Selection.cs
- WindowsFormsSectionHandler.cs
- TextComposition.cs
- FormattedText.cs
- EqualityComparer.cs
- XmlEntity.cs
- PathNode.cs
- AnnotationAuthorChangedEventArgs.cs
- ContextQuery.cs