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
- DesignerVerbCollection.cs
- TimelineClockCollection.cs
- EventsTab.cs
- SafeFileMappingHandle.cs
- RawAppCommandInputReport.cs
- CellNormalizer.cs
- CompiledAction.cs
- StringToken.cs
- CustomDictionarySources.cs
- SoapAttributes.cs
- InheritanceAttribute.cs
- SerializationTrace.cs
- WebHttpSecurity.cs
- SqlConnection.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- StrongNamePublicKeyBlob.cs
- CollectionViewProxy.cs
- EncryptedXml.cs
- RSAPKCS1SignatureFormatter.cs
- ModelItemCollectionImpl.cs
- BulletChrome.cs
- SqlWorkflowInstanceStoreLock.cs
- ToolStripItemEventArgs.cs
- FileLogRecordStream.cs
- CancellationState.cs
- TypeUsageBuilder.cs
- KeysConverter.cs
- ClientType.cs
- FolderBrowserDialog.cs
- ListView.cs
- RelationshipEnd.cs
- _BaseOverlappedAsyncResult.cs
- DefaultBindingPropertyAttribute.cs
- SvcMapFile.cs
- EventToken.cs
- EncoderBestFitFallback.cs
- CodeMethodReturnStatement.cs
- DataGridHelper.cs
- HorizontalAlignConverter.cs
- compensatingcollection.cs
- FactorySettingsElement.cs
- Nullable.cs
- OpCodes.cs
- EmptyQuery.cs
- FileRegion.cs
- WindowsRegion.cs
- UpdateManifestForBrowserApplication.cs
- DescendantQuery.cs
- GridViewPageEventArgs.cs
- SqlXml.cs
- FontClient.cs
- XmlSchemaValidator.cs
- ErrorFormatterPage.cs
- LineServicesCallbacks.cs
- MiniLockedBorderGlyph.cs
- HandlerFactoryCache.cs
- WinFormsUtils.cs
- EditorAttribute.cs
- TreeViewHitTestInfo.cs
- SAPIEngineTypes.cs
- BigInt.cs
- LogReservationCollection.cs
- IntegerValidator.cs
- PartitionResolver.cs
- QueryResponse.cs
- OracleCommand.cs
- DrawTreeNodeEventArgs.cs
- ObjectSpanRewriter.cs
- BinaryObjectWriter.cs
- DESCryptoServiceProvider.cs
- XPathExpr.cs
- _FixedSizeReader.cs
- EventSourceCreationData.cs
- LayoutUtils.cs
- InvalidStoreProtectionKeyException.cs
- FormViewCommandEventArgs.cs
- DataBoundControlHelper.cs
- BaseParagraph.cs
- DataIdProcessor.cs
- FixedSchema.cs
- BamlLocalizableResource.cs
- CodeTypeDeclaration.cs
- DynamicValidatorEventArgs.cs
- MatrixValueSerializer.cs
- _SpnDictionary.cs
- GroupQuery.cs
- BindingMAnagerBase.cs
- AccessText.cs
- Int64KeyFrameCollection.cs
- CfgSemanticTag.cs
- EmbeddedMailObject.cs
- FixedSOMPageElement.cs
- GcSettings.cs
- WebPartEditorApplyVerb.cs
- RtType.cs
- SqlCacheDependencyDatabase.cs
- FilteredXmlReader.cs
- TextStore.cs
- Subordinate.cs
- CancellableEnumerable.cs