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
- TypeConverterValueSerializer.cs
- ProgressBarRenderer.cs
- EdmFunction.cs
- ObjectContextServiceProvider.cs
- MemberDomainMap.cs
- _SSPIWrapper.cs
- ServiceNotStartedException.cs
- QueryExtender.cs
- Window.cs
- RequestCache.cs
- WebReferencesBuildProvider.cs
- HMACSHA512.cs
- EncoderFallback.cs
- Int16.cs
- DelayedRegex.cs
- NonceToken.cs
- EventEntry.cs
- SqlRetyper.cs
- BitConverter.cs
- PaintValueEventArgs.cs
- ReflectionHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- EdmType.cs
- SpoolingTask.cs
- StreamUpdate.cs
- _ListenerResponseStream.cs
- PointConverter.cs
- DispatcherOperation.cs
- EntityTransaction.cs
- DynamicILGenerator.cs
- HandlerBase.cs
- ProcessDesigner.cs
- MultiBinding.cs
- CacheMemory.cs
- OwnerDrawPropertyBag.cs
- SafeRightsManagementQueryHandle.cs
- HtmlImageAdapter.cs
- OdbcConnectionOpen.cs
- ToolStripComboBox.cs
- TypeConverterBase.cs
- FontClient.cs
- KernelTypeValidation.cs
- CellQuery.cs
- CryptoHelper.cs
- CellLabel.cs
- CommentEmitter.cs
- TextTreeInsertElementUndoUnit.cs
- CookieHandler.cs
- AsyncOperationManager.cs
- FastPropertyAccessor.cs
- CapabilitiesPattern.cs
- SectionRecord.cs
- FlowLayoutPanel.cs
- Identifier.cs
- RootBrowserWindowProxy.cs
- UrlAuthFailedErrorFormatter.cs
- SocketInformation.cs
- RegexInterpreter.cs
- DataGridViewRowStateChangedEventArgs.cs
- InfoCardKeyedHashAlgorithm.cs
- TextBox.cs
- MarshalDirectiveException.cs
- SiteMapProvider.cs
- FixedPage.cs
- httpserverutility.cs
- MSHTMLHost.cs
- MasterPageBuildProvider.cs
- DesignBindingConverter.cs
- ComponentEvent.cs
- NavigationProperty.cs
- WrapPanel.cs
- BlurBitmapEffect.cs
- Hash.cs
- GeometryDrawing.cs
- TreeNodeCollectionEditor.cs
- WindowsAuthenticationEventArgs.cs
- XmlSchemaValidationException.cs
- StrokeCollectionConverter.cs
- XmlSchemaIdentityConstraint.cs
- PerspectiveCamera.cs
- CompressedStack.cs
- SiteMapSection.cs
- MemberDescriptor.cs
- DataGridViewColumnTypePicker.cs
- RuleSettings.cs
- Mouse.cs
- Filter.cs
- UniformGrid.cs
- InheritanceRules.cs
- InputLanguageSource.cs
- FreezableCollection.cs
- NavigationService.cs
- ContentAlignmentEditor.cs
- HMAC.cs
- ParallelEnumerable.cs
- SymbolDocumentInfo.cs
- StructuredCompositeActivityDesigner.cs
- DbConnectionClosed.cs
- Transform.cs
- MasterPageBuildProvider.cs