Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Diagnostics / CodeAnalysis / SuppressMessageAttribute.cs / 1305376 / 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; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// 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; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2TypeInfoProcessor.cs
- HtmlInputHidden.cs
- NamespaceList.cs
- FSWPathEditor.cs
- DiagnosticStrings.cs
- ExtenderControl.cs
- FragmentQueryKB.cs
- TextSelectionHighlightLayer.cs
- NetworkStream.cs
- DataGridViewComboBoxColumn.cs
- EncoderNLS.cs
- ExecutionEngineException.cs
- MsmqIntegrationElement.cs
- PeerNeighborManager.cs
- ThumbAutomationPeer.cs
- WrapperEqualityComparer.cs
- AuthenticationSection.cs
- DeviceContext2.cs
- ScheduleChanges.cs
- PolyBezierSegmentFigureLogic.cs
- KeyGesture.cs
- nulltextnavigator.cs
- Quack.cs
- ToolStripInSituService.cs
- CodeDomExtensionMethods.cs
- InstanceBehavior.cs
- CodeObject.cs
- DataSourceHelper.cs
- Vector3DIndependentAnimationStorage.cs
- PersianCalendar.cs
- RuleSettings.cs
- UrlAuthFailedErrorFormatter.cs
- DataGridViewRowHeaderCell.cs
- GetCardDetailsRequest.cs
- InvalidateEvent.cs
- FlagsAttribute.cs
- ToolStripDropDown.cs
- SynchronousChannel.cs
- TableFieldsEditor.cs
- SqlBooleanMismatchVisitor.cs
- PropertyInformationCollection.cs
- WebHeaderCollection.cs
- Action.cs
- ToolStripDesigner.cs
- ColorDialog.cs
- ErrorStyle.cs
- ValueProviderWrapper.cs
- RegexCompilationInfo.cs
- RuleInfoComparer.cs
- Identity.cs
- ConfigXmlWhitespace.cs
- _HelperAsyncResults.cs
- MetadataArtifactLoader.cs
- ListViewItemSelectionChangedEvent.cs
- XmlEncodedRawTextWriter.cs
- DateTimeFormatInfo.cs
- Int32CollectionValueSerializer.cs
- XmlSignatureManifest.cs
- HijriCalendar.cs
- TokenFactoryFactory.cs
- UIntPtr.cs
- SerializationInfo.cs
- UserPersonalizationStateInfo.cs
- HttpRuntimeSection.cs
- XslException.cs
- AuthenticationModulesSection.cs
- OneOfTypeConst.cs
- MessageEncoder.cs
- GreenMethods.cs
- DataGridViewRowsAddedEventArgs.cs
- PathFigureCollection.cs
- QuaternionAnimationBase.cs
- ListBoxItemWrapperAutomationPeer.cs
- PropertyItemInternal.cs
- PropertyDescriptor.cs
- HierarchicalDataSourceControl.cs
- UniqueIdentifierService.cs
- DesignerActionKeyboardBehavior.cs
- ImageCodecInfo.cs
- JsonEncodingStreamWrapper.cs
- TileModeValidation.cs
- XPathCompileException.cs
- DynamicMetaObject.cs
- MaskDescriptor.cs
- GridItemPatternIdentifiers.cs
- QueryExpr.cs
- StringArrayConverter.cs
- InvalidComObjectException.cs
- HtmlInputHidden.cs
- ParserHooks.cs
- TrustDriver.cs
- SystemWebExtensionsSectionGroup.cs
- PostBackTrigger.cs
- QueryResponse.cs
- CFStream.cs
- PropertyKey.cs
- sqlser.cs
- DBBindings.cs
- Rotation3D.cs
- DiscoveryClientDocuments.cs