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
- PathSegmentCollection.cs
- ManifestSignedXml.cs
- KerberosSecurityTokenAuthenticator.cs
- IApplicationTrustManager.cs
- ManipulationStartedEventArgs.cs
- EntityDesignerBuildProvider.cs
- FixedPage.cs
- RelatedImageListAttribute.cs
- IssuedSecurityTokenParameters.cs
- StaticExtensionConverter.cs
- HttpResponseBase.cs
- DrawingCollection.cs
- ResourceDictionary.cs
- dsa.cs
- SafeFileMapViewHandle.cs
- TagPrefixAttribute.cs
- DataListItemCollection.cs
- ProcessModelSection.cs
- Message.cs
- SynchronizedChannelCollection.cs
- CompilationUnit.cs
- IIS7ConfigurationLoader.cs
- InputLanguageEventArgs.cs
- Floater.cs
- ReferenceSchema.cs
- IdentityHolder.cs
- RadioButtonFlatAdapter.cs
- BrowserTree.cs
- PropertyKey.cs
- MenuItemStyle.cs
- StringKeyFrameCollection.cs
- UrlMappingsModule.cs
- CompositeActivityValidator.cs
- RepeaterItemCollection.cs
- TrackingStringDictionary.cs
- VectorAnimationUsingKeyFrames.cs
- MaskedTextBoxDesigner.cs
- SqlConnectionHelper.cs
- DataSourceCollectionBase.cs
- DesignerVerb.cs
- QilCloneVisitor.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- CreateUserWizardStep.cs
- FileUpload.cs
- MatrixTransform3D.cs
- XmlSchemaInfo.cs
- WebHeaderCollection.cs
- FormViewModeEventArgs.cs
- ResourceDisplayNameAttribute.cs
- ByteArrayHelperWithString.cs
- TempEnvironment.cs
- ListView.cs
- CodeDefaultValueExpression.cs
- UnionCodeGroup.cs
- OracleConnection.cs
- OperatorExpressions.cs
- ContentFilePart.cs
- SecurityContextSecurityToken.cs
- GridViewColumnCollection.cs
- NumberSubstitution.cs
- compensatingcollection.cs
- SecurityException.cs
- CloudCollection.cs
- SharedPersonalizationStateInfo.cs
- HttpFileCollectionBase.cs
- CheckBoxList.cs
- XmlQualifiedName.cs
- UnitySerializationHolder.cs
- DataException.cs
- WsatAdminException.cs
- ExpressionBindingsDialog.cs
- InfocardExtendedInformationEntry.cs
- DataSourceCache.cs
- AdjustableArrowCap.cs
- DeclaredTypeElement.cs
- FactoryGenerator.cs
- InstanceValue.cs
- LazyTextWriterCreator.cs
- SafeNativeMethods.cs
- JsonWriter.cs
- TraceSwitch.cs
- DBCommand.cs
- MdiWindowListItemConverter.cs
- FieldToken.cs
- DataServiceBehavior.cs
- DataExpression.cs
- ColorTransformHelper.cs
- SpecularMaterial.cs
- CapabilitiesRule.cs
- LocatorGroup.cs
- RectIndependentAnimationStorage.cs
- NativeCppClassAttribute.cs
- XmlDownloadManager.cs
- GregorianCalendarHelper.cs
- SystemWebSectionGroup.cs
- ListBoxAutomationPeer.cs
- TextEndOfParagraph.cs
- ChildTable.cs
- _UriTypeConverter.cs
- SecurityVerifiedMessage.cs