Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypedTableBase.cs
- KeyBinding.cs
- StrokeNode.cs
- TableCell.cs
- URLMembershipCondition.cs
- BufferedGraphics.cs
- dtdvalidator.cs
- BufferAllocator.cs
- Converter.cs
- SqlDataSourceView.cs
- DataSourceCache.cs
- XmlSchemaSimpleContentRestriction.cs
- Formatter.cs
- ParameterReplacerVisitor.cs
- peersecurityelement.cs
- ExpandCollapsePattern.cs
- HttpResponseInternalWrapper.cs
- ToolBarButtonClickEvent.cs
- Misc.cs
- Win32Native.cs
- xamlnodes.cs
- ConfigurationManagerInternal.cs
- PeerInvitationResponse.cs
- TextLineBreak.cs
- FlatButtonAppearance.cs
- JsonDataContract.cs
- TextElement.cs
- GridView.cs
- ListControlConvertEventArgs.cs
- BreakRecordTable.cs
- ReaderWriterLock.cs
- SubstitutionList.cs
- DataGridViewRowPostPaintEventArgs.cs
- ClientBuildManager.cs
- shaperfactoryquerycachekey.cs
- StreamSecurityUpgradeAcceptor.cs
- ToolStripCollectionEditor.cs
- AppSettingsSection.cs
- IPHostEntry.cs
- ProviderSettingsCollection.cs
- ErrorFormatter.cs
- ProviderBase.cs
- DataChangedEventManager.cs
- DetailsViewModeEventArgs.cs
- XmlNotation.cs
- Cursors.cs
- SqlServer2KCompatibilityCheck.cs
- HtmlDocument.cs
- XmlObjectSerializer.cs
- StateDesignerConnector.cs
- WindowsTab.cs
- BamlLocalizationDictionary.cs
- Attributes.cs
- SecurityKeyIdentifierClause.cs
- ZipIOLocalFileHeader.cs
- MSAAEventDispatcher.cs
- ChannelDemuxer.cs
- TransformerInfo.cs
- HatchBrush.cs
- SoapAttributeAttribute.cs
- GradientStopCollection.cs
- LinqDataSourceInsertEventArgs.cs
- SelectorItemAutomationPeer.cs
- DelegatedStream.cs
- XmlMapping.cs
- EntityStoreSchemaFilterEntry.cs
- Trace.cs
- ConfigurationValue.cs
- SerializationSectionGroup.cs
- SecurityKeyType.cs
- CollectionCodeDomSerializer.cs
- VisualStyleInformation.cs
- XMLDiffLoader.cs
- StorageFunctionMapping.cs
- XmlTextWriter.cs
- XmlAutoDetectWriter.cs
- StringValidator.cs
- SpecularMaterial.cs
- DataSourceCacheDurationConverter.cs
- SecurityManager.cs
- CollectionChangeEventArgs.cs
- TableRow.cs
- TextEffect.cs
- ZoomPercentageConverter.cs
- QueryConverter.cs
- SqlMethodAttribute.cs
- XmlSchemaObjectCollection.cs
- PeerNameRecord.cs
- SqlDataSourceSelectingEventArgs.cs
- ColorMap.cs
- SamlAudienceRestrictionCondition.cs
- MdiWindowListStrip.cs
- TreeNodeCollection.cs
- ImageSource.cs
- Types.cs
- InputBinding.cs
- RectAnimation.cs
- SizeAnimationClockResource.cs
- PerformanceCounterPermissionAttribute.cs
- MdImport.cs