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
- PageHandlerFactory.cs
- ResourcesBuildProvider.cs
- FixedSOMTextRun.cs
- QilNode.cs
- DataContractSet.cs
- XmlSchemaExternal.cs
- HtmlMeta.cs
- IPEndPointCollection.cs
- ShutDownListener.cs
- SqlProviderManifest.cs
- AnonymousIdentificationSection.cs
- OleDbRowUpdatedEvent.cs
- CompilerGeneratedAttribute.cs
- EncodingTable.cs
- TextDecorationLocationValidation.cs
- AnimationLayer.cs
- SqlColumnizer.cs
- AtomEntry.cs
- ValidationErrorCollection.cs
- RequestCacheValidator.cs
- EdmFunction.cs
- SspiNegotiationTokenAuthenticator.cs
- XmlSerializer.cs
- WebPartCancelEventArgs.cs
- PriorityBindingExpression.cs
- FileReservationCollection.cs
- PropertyManager.cs
- InvokeGenerator.cs
- ClientScriptItem.cs
- RtfFormatStack.cs
- XmlUtilWriter.cs
- NativeMethods.cs
- DescendantQuery.cs
- ThemeDirectoryCompiler.cs
- XmlSchemaSimpleTypeUnion.cs
- SqlRowUpdatedEvent.cs
- TreeNodeSelectionProcessor.cs
- _NegotiateClient.cs
- PropertyEntry.cs
- ProfileServiceManager.cs
- SafeBitVector32.cs
- UpDownEvent.cs
- BulletChrome.cs
- objectquery_tresulttype.cs
- SemanticBasicElement.cs
- NameValueCollection.cs
- ReferencedAssemblyResolver.cs
- ProfileInfo.cs
- DataColumnSelectionConverter.cs
- DesignerDataConnection.cs
- TreeView.cs
- ConvertBinder.cs
- CharacterMetricsDictionary.cs
- TextBoxLine.cs
- XPathNodeList.cs
- XmlCharacterData.cs
- DataSourceXmlAttributeAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- KeyedCollection.cs
- MetadataStore.cs
- basevalidator.cs
- ScrollEventArgs.cs
- SubMenuStyle.cs
- PropertyGridDesigner.cs
- ButtonChrome.cs
- ConfigXmlAttribute.cs
- AsymmetricSignatureFormatter.cs
- HttpProfileBase.cs
- OdbcConnectionStringbuilder.cs
- SqlMethodAttribute.cs
- ProtectedConfigurationProviderCollection.cs
- StorageMappingItemCollection.cs
- ProgramNode.cs
- OperatingSystem.cs
- XmlDataProvider.cs
- BrushConverter.cs
- LocalizationParserHooks.cs
- TypeSystem.cs
- MachineKeySection.cs
- DSASignatureFormatter.cs
- SQLSingle.cs
- ReverseComparer.cs
- Brush.cs
- Popup.cs
- Rights.cs
- SafeSecurityHandles.cs
- SafeNativeMethods.cs
- XmlSchemaGroupRef.cs
- WebBrowserNavigatingEventHandler.cs
- LogicalTreeHelper.cs
- StaticExtension.cs
- WbmpConverter.cs
- DesignerSelectionListAdapter.cs
- StaticSiteMapProvider.cs
- TypedDataSetSchemaImporterExtension.cs
- _StreamFramer.cs
- Wrapper.cs
- JoinQueryOperator.cs
- PaginationProgressEventArgs.cs
- XmlAttributeProperties.cs