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
- EqualityComparer.cs
- ToolBar.cs
- HttpFileCollection.cs
- ITreeGenerator.cs
- SyntaxCheck.cs
- MimeBasePart.cs
- SafeIUnknown.cs
- InfoCardSymmetricAlgorithm.cs
- TransformerInfo.cs
- ProfilePropertyMetadata.cs
- DependencyObjectProvider.cs
- WebServiceHostFactory.cs
- TextEditorDragDrop.cs
- PasswordRecoveryAutoFormat.cs
- EntityViewGenerationConstants.cs
- DynamicQueryableWrapper.cs
- ObjectNavigationPropertyMapping.cs
- RowUpdatedEventArgs.cs
- CfgRule.cs
- CodePageEncoding.cs
- ToolStripItemTextRenderEventArgs.cs
- UserControlBuildProvider.cs
- Decoder.cs
- TextCollapsingProperties.cs
- TransactionFormatter.cs
- ReplyChannelAcceptor.cs
- TagMapInfo.cs
- LoginCancelEventArgs.cs
- BamlVersionHeader.cs
- SubstitutionResponseElement.cs
- HostingEnvironmentSection.cs
- FloatUtil.cs
- SoapEnvelopeProcessingElement.cs
- DuplicateWaitObjectException.cs
- InheritedPropertyDescriptor.cs
- DataGridViewCheckBoxColumn.cs
- ClientUrlResolverWrapper.cs
- DeferredTextReference.cs
- XmlILStorageConverter.cs
- DataGridView.cs
- DataGridViewRowStateChangedEventArgs.cs
- cookie.cs
- FileDialogPermission.cs
- RawStylusActions.cs
- AbsoluteQuery.cs
- FixedSOMFixedBlock.cs
- PixelFormat.cs
- Attributes.cs
- Pipe.cs
- XmlSchemaDatatype.cs
- TextRangeBase.cs
- cache.cs
- CharacterBufferReference.cs
- PolyBezierSegmentFigureLogic.cs
- PointAnimation.cs
- XPathSingletonIterator.cs
- CompressedStack.cs
- DataGridViewSortCompareEventArgs.cs
- BooleanExpr.cs
- DriveInfo.cs
- BufferBuilder.cs
- UnmanagedMemoryStreamWrapper.cs
- QuaternionConverter.cs
- ListParagraph.cs
- DataColumn.cs
- RuntimeComponentFilter.cs
- ResolveNameEventArgs.cs
- RootAction.cs
- ExportException.cs
- CustomCategoryAttribute.cs
- XamlReader.cs
- SecurityUtils.cs
- CngKey.cs
- Int32KeyFrameCollection.cs
- GridViewColumn.cs
- GridViewRow.cs
- CngUIPolicy.cs
- AppLevelCompilationSectionCache.cs
- SizeF.cs
- DeviceFilterEditorDialog.cs
- ExponentialEase.cs
- XmlTextAttribute.cs
- Int16.cs
- SafeRightsManagementPubHandle.cs
- CodeLinePragma.cs
- UriTemplateQueryValue.cs
- dataSvcMapFileLoader.cs
- COM2IProvidePropertyBuilderHandler.cs
- Component.cs
- ToolStripSeparatorRenderEventArgs.cs
- UpdateCommand.cs
- AnimationTimeline.cs
- BaseTransportHeaders.cs
- Maps.cs
- RequestSecurityTokenSerializer.cs
- printdlgexmarshaler.cs
- SemanticResultKey.cs
- UpdateTranslator.cs
- CodeCastExpression.cs
- BrowserCapabilitiesCompiler.cs