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
- DSASignatureDeformatter.cs
- DataGridRowEventArgs.cs
- HelpKeywordAttribute.cs
- DbgCompiler.cs
- RuleSettings.cs
- ToggleButtonAutomationPeer.cs
- QilUnary.cs
- TableDetailsRow.cs
- XmlNamespaceManager.cs
- InfoCardMetadataExchangeClient.cs
- XmlSchemaExporter.cs
- Profiler.cs
- WorkflowApplicationEventArgs.cs
- RelatedPropertyManager.cs
- ReflectionHelper.cs
- _HeaderInfo.cs
- DataListDesigner.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- UnsafeNativeMethods.cs
- COM2PropertyPageUITypeConverter.cs
- SystemResources.cs
- SelectionEditor.cs
- X509Utils.cs
- HttpProxyTransportBindingElement.cs
- Compilation.cs
- FontFamilyValueSerializer.cs
- Odbc32.cs
- MDIClient.cs
- DecoderBestFitFallback.cs
- XmlSchemaSubstitutionGroup.cs
- TCPListener.cs
- Rotation3DAnimation.cs
- COM2EnumConverter.cs
- StrokeFIndices.cs
- SubpageParagraph.cs
- SetterTriggerConditionValueConverter.cs
- ComboBox.cs
- Memoizer.cs
- BrowserCapabilitiesFactory.cs
- SettingsAttributes.cs
- XmlArrayAttribute.cs
- FixedPosition.cs
- SystemThemeKey.cs
- ReadWriteSpinLock.cs
- SBCSCodePageEncoding.cs
- MailBnfHelper.cs
- SerializerWriterEventHandlers.cs
- ResourceReader.cs
- Rotation3DKeyFrameCollection.cs
- SqlConnectionStringBuilder.cs
- CatalogPartCollection.cs
- RightsManagementEncryptionTransform.cs
- _ListenerAsyncResult.cs
- QilGeneratorEnv.cs
- WebPartConnectionsCancelVerb.cs
- QueryCacheKey.cs
- Page.cs
- SignedXmlDebugLog.cs
- MeasureItemEvent.cs
- InputScope.cs
- FormViewCommandEventArgs.cs
- XmlSchemaObjectTable.cs
- X509Certificate2Collection.cs
- InternalsVisibleToAttribute.cs
- SelectionListComponentEditor.cs
- HtmlImage.cs
- Converter.cs
- XsdDataContractExporter.cs
- MulticastNotSupportedException.cs
- DbConnectionPool.cs
- TypeLibConverter.cs
- ImageSource.cs
- RenderCapability.cs
- BitmapPalette.cs
- TimeSpanStorage.cs
- XmlEncodedRawTextWriter.cs
- HttpApplicationFactory.cs
- Metafile.cs
- Keywords.cs
- RestHandler.cs
- GradientSpreadMethodValidation.cs
- NestedContainer.cs
- NavigationCommands.cs
- ProfileGroupSettingsCollection.cs
- UriScheme.cs
- ReferenceConverter.cs
- BaseTransportHeaders.cs
- NetCodeGroup.cs
- OledbConnectionStringbuilder.cs
- ListViewCancelEventArgs.cs
- ClientConfigPaths.cs
- Assembly.cs
- AssertSection.cs
- OleDbConnectionInternal.cs
- KoreanCalendar.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- TextTreeDeleteContentUndoUnit.cs
- JoinQueryOperator.cs
- CurrentChangingEventManager.cs
- URLString.cs