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
- Pair.cs
- TableSectionStyle.cs
- CodeCommentStatementCollection.cs
- NamespaceEmitter.cs
- HandlerMappingMemo.cs
- CultureData.cs
- GcHandle.cs
- OverflowException.cs
- SineEase.cs
- MimeParameter.cs
- SqlUserDefinedTypeAttribute.cs
- IsolatedStorageSecurityState.cs
- NamespaceEmitter.cs
- PagerStyle.cs
- XmlAnyElementAttributes.cs
- HyperLink.cs
- ShortcutKeysEditor.cs
- HtmlLinkAdapter.cs
- XmlFormatReaderGenerator.cs
- FileDialogCustomPlacesCollection.cs
- Guid.cs
- XPathNodePointer.cs
- CheckedPointers.cs
- SqlBuilder.cs
- MouseBinding.cs
- RecordManager.cs
- ToolStripComboBox.cs
- COAUTHIDENTITY.cs
- SmiConnection.cs
- NodeLabelEditEvent.cs
- HttpDebugHandler.cs
- DataServicePagingProviderWrapper.cs
- WebBrowserUriTypeConverter.cs
- UiaCoreApi.cs
- XmlDocumentFragment.cs
- EmptyReadOnlyDictionaryInternal.cs
- RequestCachePolicyConverter.cs
- ReaderWriterLockWrapper.cs
- PointCollection.cs
- _BasicClient.cs
- SimpleMailWebEventProvider.cs
- Ticks.cs
- OleDbPermission.cs
- DataServiceProcessingPipeline.cs
- NativeMethods.cs
- CodeDelegateCreateExpression.cs
- IgnoreSectionHandler.cs
- PanelDesigner.cs
- ProxyBuilder.cs
- RegexCompiler.cs
- Simplifier.cs
- SecurityContext.cs
- Nullable.cs
- ModelTreeEnumerator.cs
- _Connection.cs
- DefaultBinder.cs
- BufferedStream.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- WindowVisualStateTracker.cs
- PropertySegmentSerializationProvider.cs
- CodeConstructor.cs
- wpf-etw.cs
- XmlILIndex.cs
- Dictionary.cs
- ClientSettings.cs
- XPathScanner.cs
- LinkLabelLinkClickedEvent.cs
- PrintPreviewControl.cs
- Calendar.cs
- FrameworkElement.cs
- SqlConnection.cs
- DesignerCommandAdapter.cs
- HashHelper.cs
- CommandLineParser.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WebPartCatalogCloseVerb.cs
- IdentityModelDictionary.cs
- DataGridDetailsPresenterAutomationPeer.cs
- FixUp.cs
- dtdvalidator.cs
- BoundsDrawingContextWalker.cs
- String.cs
- OleStrCAMarshaler.cs
- HttpCookieCollection.cs
- DataGridViewRowStateChangedEventArgs.cs
- FastPropertyAccessor.cs
- QuaternionRotation3D.cs
- Timer.cs
- BuildProvider.cs
- Serializer.cs
- FloaterBaseParagraph.cs
- MatrixTransform.cs
- SoapReflector.cs
- NumericUpDownAccelerationCollection.cs
- XmlKeywords.cs
- RequestQueue.cs
- IsolatedStorageFile.cs
- DBAsyncResult.cs
- DocComment.cs
- QuarticEase.cs