Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XmlDocumentFragment.cs
- ViewStateModeByIdAttribute.cs
- AutomationElement.cs
- CodeNamespaceCollection.cs
- EntityFrameworkVersions.cs
- TextEditorParagraphs.cs
- InfoCardServiceInstallComponent.cs
- ManagedFilter.cs
- PropertyValueUIItem.cs
- HtmlTextArea.cs
- WizardPanel.cs
- XmlSchemaChoice.cs
- ToolStripRenderEventArgs.cs
- TimeEnumHelper.cs
- SerializationInfoEnumerator.cs
- Tokenizer.cs
- PartialTrustValidationBehavior.cs
- TabletDevice.cs
- NamespaceInfo.cs
- WizardStepBase.cs
- FormsAuthenticationTicket.cs
- OutgoingWebResponseContext.cs
- Literal.cs
- ConnectionManager.cs
- DataGridViewColumnTypePicker.cs
- Page.cs
- CodeMemberProperty.cs
- XsltOutput.cs
- Model3D.cs
- XpsSerializationManager.cs
- ModelUIElement3D.cs
- SecureUICommand.cs
- SqlCommand.cs
- NoResizeHandleGlyph.cs
- AxisAngleRotation3D.cs
- WorkflowOperationFault.cs
- XmlCharCheckingReader.cs
- PreservationFileWriter.cs
- CustomTrackingQuery.cs
- GridSplitterAutomationPeer.cs
- XmlRawWriter.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SqlProcedureAttribute.cs
- UriWriter.cs
- ObfuscationAttribute.cs
- SwitchAttribute.cs
- XmlTextReaderImplHelpers.cs
- NegotiationTokenAuthenticatorState.cs
- TemplatePartAttribute.cs
- VarRefManager.cs
- ObjectSecurity.cs
- XmlTextReaderImplHelpers.cs
- BaseDataList.cs
- QueryInterceptorAttribute.cs
- WindowsImpersonationContext.cs
- ToolStripTextBox.cs
- EventBindingService.cs
- FacetValues.cs
- InputBindingCollection.cs
- Vector3DCollectionValueSerializer.cs
- BufferBuilder.cs
- SafeRightsManagementHandle.cs
- DataGridRow.cs
- Win32Exception.cs
- XsltQilFactory.cs
- HandlerBase.cs
- EdmPropertyAttribute.cs
- PlatformCulture.cs
- ChannelServices.cs
- UIElement.cs
- SQLByte.cs
- TimeSpanMinutesConverter.cs
- MetaChildrenColumn.cs
- ScrollViewer.cs
- XmlWriterTraceListener.cs
- ScriptingRoleServiceSection.cs
- CounterSample.cs
- XhtmlCssHandler.cs
- BitmapEffectCollection.cs
- CodePageUtils.cs
- DynamicValueConverter.cs
- TabPanel.cs
- oledbmetadatacollectionnames.cs
- RSACryptoServiceProvider.cs
- Bits.cs
- FilterEventArgs.cs
- ElementAction.cs
- XmlIlGenerator.cs
- ColorContextHelper.cs
- Object.cs
- SmtpReplyReader.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MemberProjectedSlot.cs
- SByte.cs
- DesignerTransaction.cs
- ReaderWriterLockSlim.cs
- IdentifierCreationService.cs
- AdPostCacheSubstitution.cs
- Logging.cs
- TraceSection.cs