Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PeerPresenceInfo.cs
- RepeaterItemEventArgs.cs
- Tuple.cs
- CodeCastExpression.cs
- CompilerErrorCollection.cs
- EventArgs.cs
- WebPartExportVerb.cs
- GradientBrush.cs
- RoutedCommand.cs
- SmiEventStream.cs
- AnimatedTypeHelpers.cs
- ItemDragEvent.cs
- XmlBinaryWriter.cs
- sqlpipe.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- XmlSchemaSimpleTypeUnion.cs
- TypeListConverter.cs
- EpmAttributeNameBuilder.cs
- FormViewRow.cs
- OdbcConnection.cs
- JobInputBins.cs
- WmlLinkAdapter.cs
- DetailsViewActionList.cs
- CodeThrowExceptionStatement.cs
- ToolZone.cs
- xmlformatgeneratorstatics.cs
- HttpStaticObjectsCollectionBase.cs
- Vector3DValueSerializer.cs
- WorkflowMessageEventHandler.cs
- Vector.cs
- UITypeEditor.cs
- DataGridItem.cs
- SiteMapSection.cs
- NameSpaceExtractor.cs
- XamlPoint3DCollectionSerializer.cs
- CatalogZoneAutoFormat.cs
- RuntimeEnvironment.cs
- WebPartsSection.cs
- PtsCache.cs
- ResXFileRef.cs
- MultiBinding.cs
- FontFamilyIdentifier.cs
- Slider.cs
- DependencyPropertyDescriptor.cs
- Error.cs
- PerformanceCounterManager.cs
- ExpressionBindings.cs
- DataMemberConverter.cs
- TextEditorThreadLocalStore.cs
- AtomPub10CategoriesDocumentFormatter.cs
- TypeConverters.cs
- CalendarDesigner.cs
- EventLogException.cs
- Config.cs
- Dump.cs
- NativeMsmqMessage.cs
- Constraint.cs
- TextEditorTables.cs
- ElapsedEventArgs.cs
- DefaultTextStoreTextComposition.cs
- Avt.cs
- RelationshipManager.cs
- XamlStream.cs
- GetPolicyDetailsRequest.cs
- ServerIdentity.cs
- NegotiationTokenAuthenticatorStateCache.cs
- SingleAnimationBase.cs
- sortedlist.cs
- Light.cs
- WebPartMinimizeVerb.cs
- lengthconverter.cs
- DBCSCodePageEncoding.cs
- MetabaseServerConfig.cs
- XhtmlTextWriter.cs
- WebServiceMethodData.cs
- ItemChangedEventArgs.cs
- LiteralControl.cs
- CodeCommentStatement.cs
- QueuePathEditor.cs
- ProgressChangedEventArgs.cs
- DataGridTextBox.cs
- MatrixCamera.cs
- PropertyChangingEventArgs.cs
- TcpAppDomainProtocolHandler.cs
- TransactionFilter.cs
- RepeaterItemCollection.cs
- PlatformCulture.cs
- DBConnection.cs
- BezierSegment.cs
- Transform3D.cs
- TemplatePartAttribute.cs
- PeerUnsafeNativeCryptMethods.cs
- Events.cs
- TextEditorSpelling.cs
- OrderedEnumerableRowCollection.cs
- InkCanvasInnerCanvas.cs
- DynamicILGenerator.cs
- RowCache.cs
- JsonSerializer.cs
- ValidatorUtils.cs