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
- ClientScriptManagerWrapper.cs
- SplitterPanel.cs
- WebControlParameterProxy.cs
- CommentAction.cs
- AngleUtil.cs
- GeometryHitTestParameters.cs
- NamedPermissionSet.cs
- TextBoxAutomationPeer.cs
- ComplexType.cs
- SiteOfOriginPart.cs
- GridSplitter.cs
- SamlSubject.cs
- LabelLiteral.cs
- ConstraintCollection.cs
- SemanticAnalyzer.cs
- FontWeights.cs
- QueryLifecycle.cs
- ServicePointManagerElement.cs
- X509ChainElement.cs
- PingOptions.cs
- XmlCharacterData.cs
- QuaternionKeyFrameCollection.cs
- BindingGroup.cs
- ComponentChangingEvent.cs
- WinFormsSpinner.cs
- XmlTextReader.cs
- MemberRelationshipService.cs
- SimpleWebHandlerParser.cs
- ExpressionPrefixAttribute.cs
- ExpressionBuilder.cs
- InnerItemCollectionView.cs
- WindowsTitleBar.cs
- SpellerInterop.cs
- SyndicationCategory.cs
- XmlAttributes.cs
- ReverseComparer.cs
- EnvelopedPkcs7.cs
- MergeFilterQuery.cs
- ByteRangeDownloader.cs
- CompilationUtil.cs
- MetadataCache.cs
- DebugHandleTracker.cs
- DataColumn.cs
- StateBag.cs
- FrameDimension.cs
- MobileResource.cs
- XmlTypeMapping.cs
- DataGridViewComboBoxCell.cs
- ConnectivityStatus.cs
- FilterQueryOptionExpression.cs
- OracleConnectionStringBuilder.cs
- SspiSafeHandles.cs
- X509PeerCertificateAuthentication.cs
- PeerCustomResolverSettings.cs
- ModuleBuilder.cs
- RenderingEventArgs.cs
- StringToken.cs
- ClientSponsor.cs
- PromptBuilder.cs
- FormViewRow.cs
- SqlDataSourceEnumerator.cs
- TransportSecurityBindingElement.cs
- ArrayWithOffset.cs
- CorePropertiesFilter.cs
- XmlQueryOutput.cs
- XmlParserContext.cs
- DocumentSequenceHighlightLayer.cs
- DataControlFieldCell.cs
- FacetEnabledSchemaElement.cs
- X509Logo.cs
- Int64Converter.cs
- LoginCancelEventArgs.cs
- TraceFilter.cs
- XPathNavigatorReader.cs
- DbSourceCommand.cs
- CssClassPropertyAttribute.cs
- DrawListViewSubItemEventArgs.cs
- DiscreteKeyFrames.cs
- CodeArrayIndexerExpression.cs
- StorageEndPropertyMapping.cs
- TableHeaderCell.cs
- Transactions.cs
- RectangleF.cs
- DecimalConstantAttribute.cs
- QueryUtil.cs
- DiffuseMaterial.cs
- SizeAnimationUsingKeyFrames.cs
- FamilyCollection.cs
- ExpressionEditorAttribute.cs
- SqlXmlStorage.cs
- BrowserCapabilitiesFactory.cs
- XmlChildNodes.cs
- Stackframe.cs
- DataGridViewCellStyleBuilderDialog.cs
- DesignerDataParameter.cs
- SessionIDManager.cs
- Delay.cs
- PageContentCollection.cs
- DetailsViewPagerRow.cs
- AttachedPropertyMethodSelector.cs