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
- UpdatePanelTriggerCollection.cs
- XmlSecureResolver.cs
- FaultDesigner.cs
- Item.cs
- HtmlGenericControl.cs
- IFlowDocumentViewer.cs
- CodeIterationStatement.cs
- TypeConverter.cs
- Lease.cs
- PreviewKeyDownEventArgs.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- COM2ComponentEditor.cs
- ProfileService.cs
- Publisher.cs
- PopOutPanel.cs
- GeneralTransformGroup.cs
- ImageClickEventArgs.cs
- DesignTimeParseData.cs
- MethodCallTranslator.cs
- _SafeNetHandles.cs
- PropertyItem.cs
- InputBuffer.cs
- Win32SafeHandles.cs
- ScriptModule.cs
- Shared.cs
- VerticalAlignConverter.cs
- XmlILStorageConverter.cs
- TimeSpanConverter.cs
- Atom10FeedFormatter.cs
- XmlSchemaProviderAttribute.cs
- MimeTextImporter.cs
- BlurBitmapEffect.cs
- InkCanvasAutomationPeer.cs
- PermissionRequestEvidence.cs
- Substitution.cs
- XmlNotation.cs
- ProfilePropertyMetadata.cs
- PropertyMapper.cs
- XmlAtomErrorReader.cs
- SafeNativeMethodsCLR.cs
- MaskedTextProvider.cs
- Control.cs
- ClassGenerator.cs
- FormatterServices.cs
- CustomBindingElement.cs
- SafeFileMappingHandle.cs
- ClosureBinding.cs
- SortedDictionary.cs
- ParameterToken.cs
- DSASignatureFormatter.cs
- GPStream.cs
- WebDisplayNameAttribute.cs
- CodeTypeDeclarationCollection.cs
- NumberFormatInfo.cs
- MessageProtectionOrder.cs
- DataGridViewCheckBoxColumn.cs
- CompiledELinqQueryState.cs
- WebRequestModulesSection.cs
- sqlstateclientmanager.cs
- GZipObjectSerializer.cs
- ObjectDataSourceEventArgs.cs
- MimeTextImporter.cs
- MemberRelationshipService.cs
- DataBoundLiteralControl.cs
- StickyNoteAnnotations.cs
- IndexOutOfRangeException.cs
- SrgsToken.cs
- CodeDomConfigurationHandler.cs
- RepeaterItem.cs
- AndCondition.cs
- brushes.cs
- DoubleLinkListEnumerator.cs
- ClientSettingsProvider.cs
- SelectionProviderWrapper.cs
- ChannelTraceRecord.cs
- DetailsView.cs
- CalloutQueueItem.cs
- ResponseStream.cs
- ObjectSet.cs
- FormsAuthenticationConfiguration.cs
- wmiprovider.cs
- HtmlTableRowCollection.cs
- XamlTreeBuilder.cs
- ProfessionalColorTable.cs
- DataShape.cs
- ComplexLine.cs
- ParenthesizePropertyNameAttribute.cs
- ExpressionBuilderContext.cs
- MultiPageTextView.cs
- EditorPart.cs
- DrawListViewItemEventArgs.cs
- RenderingBiasValidation.cs
- TextEffectCollection.cs
- CompositeScriptReference.cs
- Content.cs
- VectorCollectionValueSerializer.cs
- Part.cs
- StateDesigner.Helpers.cs
- ScaleTransform3D.cs
- HttpDebugHandler.cs