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
- TextTreeRootNode.cs
- AutoGeneratedField.cs
- SharedPersonalizationStateInfo.cs
- XPathScanner.cs
- Odbc32.cs
- BidOverLoads.cs
- SessionPageStatePersister.cs
- DataGridBoolColumn.cs
- nulltextcontainer.cs
- WebPartMinimizeVerb.cs
- ComponentChangingEvent.cs
- _LazyAsyncResult.cs
- RelatedView.cs
- DocumentPageTextView.cs
- SmiEventSink_DeferedProcessing.cs
- MembershipValidatePasswordEventArgs.cs
- EllipseGeometry.cs
- XmlEntityReference.cs
- xmlfixedPageInfo.cs
- WindowsListViewGroupSubsetLink.cs
- SqlTypesSchemaImporter.cs
- DBCommandBuilder.cs
- CodeTypeParameterCollection.cs
- QuaternionRotation3D.cs
- TrailingSpaceComparer.cs
- BaseTemplateParser.cs
- TreeNodeStyleCollection.cs
- XmlSchemaSubstitutionGroup.cs
- EditingCoordinator.cs
- ParameterCollection.cs
- SchemaManager.cs
- XmlStreamNodeWriter.cs
- PropertyTabAttribute.cs
- AuthenticationModuleElementCollection.cs
- TypedReference.cs
- PtsHost.cs
- WindowsPrincipal.cs
- NativeMethods.cs
- PropertyPathConverter.cs
- AdapterUtil.cs
- TreeBuilderXamlTranslator.cs
- xamlnodes.cs
- wmiprovider.cs
- BufferedReadStream.cs
- HyperLinkStyle.cs
- CommonProperties.cs
- CardSpacePolicyElement.cs
- FileLogRecordStream.cs
- Vector.cs
- FlowLayoutSettings.cs
- SplineKeyFrames.cs
- TypeCollectionDesigner.xaml.cs
- CodePageEncoding.cs
- PathFigureCollectionValueSerializer.cs
- DashStyle.cs
- ScriptReference.cs
- XmlSerializationWriter.cs
- GeneralTransform3D.cs
- XomlCompiler.cs
- IgnoreFlushAndCloseStream.cs
- JpegBitmapEncoder.cs
- DependencyObjectProvider.cs
- SettingsPropertyNotFoundException.cs
- BamlRecordReader.cs
- ImageButton.cs
- InteropBitmapSource.cs
- TypeBuilderInstantiation.cs
- ResourceDictionary.cs
- TreeViewBindingsEditorForm.cs
- NameGenerator.cs
- Hex.cs
- NetworkInformationPermission.cs
- HitTestWithPointDrawingContextWalker.cs
- DiagnosticEventProvider.cs
- ImageSource.cs
- SqlProcedureAttribute.cs
- CodeNamespaceCollection.cs
- PointHitTestResult.cs
- KnownTypesProvider.cs
- DesignSurfaceServiceContainer.cs
- DecimalConverter.cs
- UnsafeNativeMethods.cs
- MailHeaderInfo.cs
- CookieParameter.cs
- StrokeSerializer.cs
- CroppedBitmap.cs
- BridgeDataReader.cs
- Exceptions.cs
- KoreanLunisolarCalendar.cs
- UnauthorizedAccessException.cs
- ActivityCodeDomReferenceService.cs
- nulltextcontainer.cs
- SymbolPair.cs
- NotConverter.cs
- TextEncodedRawTextWriter.cs
- DebugTrace.cs
- ProtectedConfigurationSection.cs
- RouteParameter.cs
- ValueHandle.cs
- DirectionalLight.cs