Code:
/ FX-1434 / FX-1434 / 1.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
- VectorCollection.cs
- AtomMaterializer.cs
- IntegerValidatorAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- BatchParser.cs
- UIElementPropertyUndoUnit.cs
- SessionPageStateSection.cs
- MetadataItemCollectionFactory.cs
- PropertyStore.cs
- XsdDuration.cs
- EndEvent.cs
- ConfigXmlReader.cs
- DrawingGroup.cs
- basecomparevalidator.cs
- AsnEncodedData.cs
- TemplateParser.cs
- InheritanceAttribute.cs
- HTTPNotFoundHandler.cs
- ToolboxItemFilterAttribute.cs
- EntityDataReader.cs
- DependencyPropertyKey.cs
- GridViewDeletedEventArgs.cs
- TypeToken.cs
- SiteMapNode.cs
- EditBehavior.cs
- Utils.cs
- SafeTimerHandle.cs
- TextChangedEventArgs.cs
- OlePropertyStructs.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- BufferModesCollection.cs
- FrameworkPropertyMetadata.cs
- ItemContainerGenerator.cs
- RelationalExpressions.cs
- ArrayList.cs
- IsolatedStorageException.cs
- DataGridPagerStyle.cs
- CachingHintValidation.cs
- EdmConstants.cs
- CodeTypeDeclaration.cs
- ListViewUpdatedEventArgs.cs
- DataTemplateKey.cs
- KeySpline.cs
- EraserBehavior.cs
- ReflectEventDescriptor.cs
- UpdateProgress.cs
- Profiler.cs
- LinkUtilities.cs
- SchemaObjectWriter.cs
- SqlErrorCollection.cs
- Currency.cs
- SymbolTable.cs
- IconEditor.cs
- StylusSystemGestureEventArgs.cs
- CustomAttributeFormatException.cs
- PersonalizablePropertyEntry.cs
- LogReservationCollection.cs
- _PooledStream.cs
- TreeNodeConverter.cs
- FloaterParaClient.cs
- DataGridViewTextBoxEditingControl.cs
- CopyNodeSetAction.cs
- SynchronizationFilter.cs
- SystemUnicastIPAddressInformation.cs
- RangeValidator.cs
- ILGenerator.cs
- RadioButton.cs
- Journaling.cs
- BitVector32.cs
- DistributedTransactionPermission.cs
- MatrixUtil.cs
- FacetEnabledSchemaElement.cs
- DriveInfo.cs
- HtmlButton.cs
- FixedDocument.cs
- WebPartRestoreVerb.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DES.cs
- HuffmanTree.cs
- UriExt.cs
- ViewLoader.cs
- SqlDataAdapter.cs
- WebPartCatalogCloseVerb.cs
- WebControl.cs
- SrgsRuleRef.cs
- PropertyMappingExceptionEventArgs.cs
- ClientRoleProvider.cs
- ManifestSignedXml.cs
- Html32TextWriter.cs
- ObjectListDataBindEventArgs.cs
- ScrollableControl.cs
- Underline.cs
- EnvironmentPermission.cs
- FormViewUpdateEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- C14NUtil.cs
- HttpResponseInternalWrapper.cs
- Attributes.cs
- CalendarSelectionChangedEventArgs.cs
- RangeValueProviderWrapper.cs