Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
// ==--==
/*============================================================
**
** 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
- SamlNameIdentifierClaimResource.cs
- DataBoundLiteralControl.cs
- SoapAttributeOverrides.cs
- CompiledXpathExpr.cs
- ExpressionLink.cs
- TextDecorationCollectionConverter.cs
- Overlapped.cs
- ToolStripSettings.cs
- TypeSystem.cs
- PropertyKey.cs
- OracleRowUpdatedEventArgs.cs
- Attributes.cs
- _SslSessionsCache.cs
- Enumerable.cs
- ListControlActionList.cs
- MetadataItem.cs
- ZeroOpNode.cs
- SQLDateTimeStorage.cs
- OleDbRowUpdatedEvent.cs
- CatalogPartCollection.cs
- ProcessDesigner.cs
- Parser.cs
- InputGestureCollection.cs
- LifetimeServices.cs
- XmlILIndex.cs
- XPathSingletonIterator.cs
- CqlQuery.cs
- UpdateEventArgs.cs
- DictionaryGlobals.cs
- StickyNote.cs
- ServicePointManager.cs
- GridSplitterAutomationPeer.cs
- UTF7Encoding.cs
- TransactionScope.cs
- DataSourceProvider.cs
- UriParserTemplates.cs
- ChangePasswordDesigner.cs
- SerializerProvider.cs
- ProfilePropertyMetadata.cs
- ParameterBuilder.cs
- SamlAuthorizationDecisionClaimResource.cs
- ScrollPatternIdentifiers.cs
- HtmlTableCell.cs
- Parameter.cs
- UpdateManifestForBrowserApplication.cs
- XPathSelectionIterator.cs
- ComplusEndpointConfigContainer.cs
- PolicyImporterElementCollection.cs
- Point4DConverter.cs
- DesignerTextViewAdapter.cs
- XmlWriterDelegator.cs
- Properties.cs
- DataTransferEventArgs.cs
- Misc.cs
- KerberosTokenFactoryCredential.cs
- WebColorConverter.cs
- GenericTextProperties.cs
- VirtualPathUtility.cs
- StringResourceManager.cs
- OleDbRowUpdatedEvent.cs
- DefinitionBase.cs
- TextPointerBase.cs
- EventLogPermissionEntryCollection.cs
- SocketInformation.cs
- Tracer.cs
- DataMember.cs
- TableRow.cs
- DataGridViewRowCollection.cs
- AutomationElementIdentifiers.cs
- SiteMap.cs
- UIElementPropertyUndoUnit.cs
- XmlIgnoreAttribute.cs
- DSASignatureDeformatter.cs
- XmlElementElement.cs
- DataGridViewCellValidatingEventArgs.cs
- XmlEntity.cs
- CacheHelper.cs
- SettingsProviderCollection.cs
- Emitter.cs
- ExtensibleSyndicationObject.cs
- BindableAttribute.cs
- XmlSchemaValidationException.cs
- EndpointDesigner.cs
- RawStylusSystemGestureInputReport.cs
- ItemType.cs
- KeyConstraint.cs
- RSACryptoServiceProvider.cs
- RewritingValidator.cs
- CryptoApi.cs
- AlgoModule.cs
- SqlConnectionHelper.cs
- RenderingEventArgs.cs
- StaticDataManager.cs
- MenuItem.cs
- HtmlInputSubmit.cs
- CollectionViewGroup.cs
- RegexCode.cs
- FrameAutomationPeer.cs
- AssemblyInfo.cs
- HttpRequestCacheValidator.cs