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
- LinkTarget.cs
- IndexOutOfRangeException.cs
- StaticDataManager.cs
- TokenBasedSetEnumerator.cs
- SafeTokenHandle.cs
- Image.cs
- SafeThreadHandle.cs
- LocalizabilityAttribute.cs
- JsonQueryStringConverter.cs
- QueueAccessMode.cs
- TreeBuilder.cs
- SspiSafeHandles.cs
- EntityDataSourceDesigner.cs
- ObjectRef.cs
- Label.cs
- objectquery_tresulttype.cs
- DragDrop.cs
- XmlSchemaSequence.cs
- XPathChildIterator.cs
- X509DefaultServiceCertificateElement.cs
- DataObjectEventArgs.cs
- LinqDataSourceSelectEventArgs.cs
- DatatypeImplementation.cs
- ListSourceHelper.cs
- DataListItemEventArgs.cs
- ExecutionEngineException.cs
- CellConstantDomain.cs
- ProvideValueServiceProvider.cs
- UpdateRecord.cs
- Adorner.cs
- Domain.cs
- RichTextBoxContextMenu.cs
- MediaPlayerState.cs
- SizeAnimation.cs
- MTConfigUtil.cs
- ApplicationId.cs
- DurationConverter.cs
- GridProviderWrapper.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- formatstringdialog.cs
- FormsAuthentication.cs
- PageSetupDialog.cs
- ToolStripDropDownButton.cs
- XslCompiledTransform.cs
- RowToParametersTransformer.cs
- AsyncOperation.cs
- RelationshipNavigation.cs
- RichTextBoxAutomationPeer.cs
- DesignerDataTableBase.cs
- CultureInfoConverter.cs
- ProfileEventArgs.cs
- XmlHelper.cs
- AttributeCollection.cs
- FontEmbeddingManager.cs
- AnonymousIdentificationSection.cs
- AutoScrollExpandMessageFilter.cs
- DataGridParentRows.cs
- AssemblyResolver.cs
- WebBrowserNavigatingEventHandler.cs
- ScriptControlDescriptor.cs
- TextPointer.cs
- PropertyItem.cs
- SessionStateSection.cs
- DataViewSettingCollection.cs
- DataContractSerializerFaultFormatter.cs
- SecurityContext.cs
- ReadWriteObjectLock.cs
- DebugHandleTracker.cs
- DetailsViewInsertedEventArgs.cs
- DynamicResourceExtension.cs
- counter.cs
- SignedXml.cs
- MouseWheelEventArgs.cs
- TraceContextRecord.cs
- Pen.cs
- ExtentKey.cs
- TextBoxView.cs
- MetafileHeader.cs
- FormattedTextSymbols.cs
- IdentityHolder.cs
- FtpWebRequest.cs
- GCHandleCookieTable.cs
- PreviewControlDesigner.cs
- TreeView.cs
- ResourceReferenceExpression.cs
- ResXFileRef.cs
- RectAnimationBase.cs
- RoleService.cs
- Span.cs
- LassoSelectionBehavior.cs
- FileResponseElement.cs
- ComplexObject.cs
- SettingsBase.cs
- SrgsElementFactoryCompiler.cs
- AsnEncodedData.cs
- coordinatorscratchpad.cs
- DetailsViewDeletedEventArgs.cs
- ComPersistableTypeElementCollection.cs
- RowsCopiedEventArgs.cs
- CollectionsUtil.cs