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
- CustomMenuItemCollection.cs
- OutputChannel.cs
- HtmlInputFile.cs
- RadioButton.cs
- WebPartHelpVerb.cs
- EdmComplexTypeAttribute.cs
- printdlgexmarshaler.cs
- GuidelineSet.cs
- KeyTimeConverter.cs
- WebSysDefaultValueAttribute.cs
- Comparer.cs
- CacheDependency.cs
- DocumentPageView.cs
- DataPagerFieldCommandEventArgs.cs
- BufferedGraphics.cs
- DelimitedListTraceListener.cs
- Pair.cs
- ConfigurationSection.cs
- ColorTranslator.cs
- Unit.cs
- GlyphInfoList.cs
- ComponentChangingEvent.cs
- ValueProviderWrapper.cs
- DirtyTextRange.cs
- RuleSettings.cs
- ResourceAttributes.cs
- ServiceDeploymentInfo.cs
- XmlEventCache.cs
- OdbcStatementHandle.cs
- SafeRightsManagementQueryHandle.cs
- SettingsPropertyValueCollection.cs
- GroupJoinQueryOperator.cs
- XPathQueryGenerator.cs
- StylusCaptureWithinProperty.cs
- KnownIds.cs
- EdmEntityTypeAttribute.cs
- DashStyle.cs
- TypeGeneratedEventArgs.cs
- DebugView.cs
- OperatorExpressions.cs
- TableCellCollection.cs
- TypeUtils.cs
- XmlNodeChangedEventManager.cs
- HtmlMeta.cs
- Application.cs
- EntityDataSourceViewSchema.cs
- SynchronizationFilter.cs
- ImageAnimator.cs
- MultiViewDesigner.cs
- ScopelessEnumAttribute.cs
- MethodBuilderInstantiation.cs
- GetBrowserTokenRequest.cs
- smtpconnection.cs
- httpapplicationstate.cs
- ParameterToken.cs
- ItemContainerProviderWrapper.cs
- MimeReturn.cs
- ShaderEffect.cs
- TailPinnedEventArgs.cs
- PermissionRequestEvidence.cs
- IPGlobalProperties.cs
- httpstaticobjectscollection.cs
- ByteConverter.cs
- cache.cs
- BrowserCapabilitiesFactory.cs
- SchemaCompiler.cs
- SizeF.cs
- XmlSchemaSimpleContentExtension.cs
- AccessibilityApplicationManager.cs
- InvalidPropValue.cs
- MouseWheelEventArgs.cs
- JavaScriptObjectDeserializer.cs
- FileSystemInfo.cs
- EnvelopedPkcs7.cs
- ExtendedPropertyDescriptor.cs
- DataControlLinkButton.cs
- SqlPersonalizationProvider.cs
- TemplateBuilder.cs
- ToolBarOverflowPanel.cs
- EntityStoreSchemaFilterEntry.cs
- RemoteWebConfigurationHost.cs
- TextProviderWrapper.cs
- ToolboxItem.cs
- DocumentPaginator.cs
- PropertyDescriptorCollection.cs
- RequestCachingSection.cs
- FileAuthorizationModule.cs
- BaseUriHelper.cs
- DataSourceXmlAttributeAttribute.cs
- ViewManager.cs
- InvalidOleVariantTypeException.cs
- SqlOuterApplyReducer.cs
- DataRecordInfo.cs
- ObjectListFieldCollection.cs
- WizardPanel.cs
- BaseServiceProvider.cs
- WindowsFormsSynchronizationContext.cs
- RectAnimation.cs
- InfoCardMasterKey.cs
- ManualResetEventSlim.cs