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
- CodeCommentStatementCollection.cs
- Clause.cs
- PathNode.cs
- CompModSwitches.cs
- TranslateTransform3D.cs
- CodeTypeReference.cs
- PLINQETWProvider.cs
- ProgressBarBrushConverter.cs
- BamlLocalizationDictionary.cs
- ConsoleCancelEventArgs.cs
- HitTestDrawingContextWalker.cs
- ProtectedProviderSettings.cs
- Quaternion.cs
- AlphaSortedEnumConverter.cs
- ImageAutomationPeer.cs
- NameValuePair.cs
- SqlAliaser.cs
- HtmlTableRow.cs
- ToolStripCodeDomSerializer.cs
- DecodeHelper.cs
- RoutingSection.cs
- MetadataCache.cs
- JoinGraph.cs
- WebPartMinimizeVerb.cs
- NestPullup.cs
- WorkflowMarkupSerializationManager.cs
- MdImport.cs
- PipeSecurity.cs
- Color.cs
- WindowsFormsHelpers.cs
- TimeSpanSecondsConverter.cs
- ExclusiveTcpListener.cs
- ConnectionStringSettingsCollection.cs
- HttpCapabilitiesEvaluator.cs
- AliasedExpr.cs
- InheritedPropertyDescriptor.cs
- SettingsPropertyValue.cs
- PrimaryKeyTypeConverter.cs
- DashStyle.cs
- LocatorPartList.cs
- ProxyElement.cs
- AttachmentService.cs
- MemberMaps.cs
- DataControlFieldCollection.cs
- HttpModuleAction.cs
- ExceptionCollection.cs
- LayoutEditorPart.cs
- ObjectDataSourceSelectingEventArgs.cs
- SchemaEntity.cs
- BorderGapMaskConverter.cs
- ContractMapping.cs
- DelegateBodyWriter.cs
- KerberosSecurityTokenAuthenticator.cs
- autovalidator.cs
- PasswordRecoveryDesigner.cs
- EncodingDataItem.cs
- SQLInt32Storage.cs
- BrowserCapabilitiesFactoryBase.cs
- DomNameTable.cs
- ToolStripOverflow.cs
- ActivityDefaults.cs
- EmptyStringExpandableObjectConverter.cs
- UserControlDocumentDesigner.cs
- Enlistment.cs
- StylusPointPropertyInfo.cs
- WmlObjectListAdapter.cs
- CompositeClientFormatter.cs
- LayoutTableCell.cs
- HtmlForm.cs
- CellQuery.cs
- _Win32.cs
- ListBox.cs
- ToolStripRenderer.cs
- Path.cs
- WinInet.cs
- TemplateField.cs
- SafeFileMappingHandle.cs
- HMACRIPEMD160.cs
- MessagingDescriptionAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- AxisAngleRotation3D.cs
- PerformanceCountersElement.cs
- SubMenuStyle.cs
- SimpleType.cs
- InputScope.cs
- PermissionToken.cs
- OverloadGroupAttribute.cs
- ToolStripMenuItem.cs
- ISFClipboardData.cs
- Odbc32.cs
- BrowserPolicyValidator.cs
- XmlSchemaNotation.cs
- DBDataPermissionAttribute.cs
- CompilerLocalReference.cs
- EntityModelSchemaGenerator.cs
- DataGridViewLinkColumn.cs
- KeyFrames.cs
- EventItfInfo.cs
- ResourceReferenceExpression.cs
- WindowsUserNameSecurityTokenAuthenticator.cs