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
- AuthenticationConfig.cs
- TableCellAutomationPeer.cs
- TemplateContent.cs
- ChannelCredentials.cs
- XmlTypeMapping.cs
- SplitContainerDesigner.cs
- LineServicesCallbacks.cs
- CounterSample.cs
- ApplicationGesture.cs
- MouseEventArgs.cs
- FastPropertyAccessor.cs
- TdsEnums.cs
- BuildProviderCollection.cs
- FileCodeGroup.cs
- XmlIgnoreAttribute.cs
- VisualStyleInformation.cs
- SortFieldComparer.cs
- ToolStripPanelRenderEventArgs.cs
- AlgoModule.cs
- DbgCompiler.cs
- RepeaterItemEventArgs.cs
- HealthMonitoringSectionHelper.cs
- SparseMemoryStream.cs
- RecordManager.cs
- NavigatorInput.cs
- Pair.cs
- EventLogPermissionEntry.cs
- CodeDOMUtility.cs
- NavigationProperty.cs
- BinaryConverter.cs
- AutoScrollExpandMessageFilter.cs
- AssociationSetMetadata.cs
- ListViewGroupConverter.cs
- SafeCryptoHandles.cs
- BooleanStorage.cs
- AutomationIdentifier.cs
- Comparer.cs
- PackageRelationship.cs
- IPPacketInformation.cs
- ContextStaticAttribute.cs
- IPAddress.cs
- StringOutput.cs
- XmlnsDefinitionAttribute.cs
- SecureStringHasher.cs
- NumericUpDownAccelerationCollection.cs
- AstNode.cs
- ContractNamespaceAttribute.cs
- CodeSnippetStatement.cs
- ImageMap.cs
- DataGridViewColumnHeaderCell.cs
- Pair.cs
- HandleTable.cs
- PointCollectionValueSerializer.cs
- SyncOperationState.cs
- TabControlEvent.cs
- ErrorHandler.cs
- SQLDateTimeStorage.cs
- RegexMatch.cs
- ConstraintEnumerator.cs
- BrowserCapabilitiesFactory.cs
- TableRow.cs
- AppendHelper.cs
- AsyncInvokeOperation.cs
- WizardForm.cs
- UnknownWrapper.cs
- WpfPayload.cs
- DataSourceCacheDurationConverter.cs
- PropertyBuilder.cs
- IndexedEnumerable.cs
- Symbol.cs
- Parser.cs
- TransportElement.cs
- RubberbandSelector.cs
- ClosableStream.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CompilerScope.cs
- ToolStripRenderer.cs
- MultipartContentParser.cs
- SupportsPreviewControlAttribute.cs
- XmlAttributeCache.cs
- PriorityQueue.cs
- Freezable.cs
- ProfileModule.cs
- StartUpEventArgs.cs
- DbConnectionPoolOptions.cs
- TypeConverterHelper.cs
- OwnerDrawPropertyBag.cs
- ReverseInheritProperty.cs
- PagedDataSource.cs
- ObjectMaterializedEventArgs.cs
- Crc32Helper.cs
- Type.cs
- DateTimeConstantAttribute.cs
- FlatButtonAppearance.cs
- DesignTableCollection.cs
- Selector.cs
- DecimalAnimationBase.cs
- TrustLevel.cs
- FlowNode.cs
- XmlILConstructAnalyzer.cs