Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Diagnostics / CodeAnalysis / SuppressMessageAttribute.cs / 1305376 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GroupBoxRenderer.cs
- UserControlParser.cs
- XXXOnTypeBuilderInstantiation.cs
- InputReferenceExpression.cs
- UriTemplateDispatchFormatter.cs
- DataGridColumnCollectionEditor.cs
- StaticFileHandler.cs
- XmlNamespaceManager.cs
- XmlSchemaValidationException.cs
- TrackingProfileDeserializationException.cs
- ObjectKeyFrameCollection.cs
- Latin1Encoding.cs
- SessionStateItemCollection.cs
- DateTimePicker.cs
- ResourceContainerWrapper.cs
- MouseBinding.cs
- DynamicActivityXamlReader.cs
- TimeSpanConverter.cs
- TableItemStyle.cs
- UriTemplateLiteralPathSegment.cs
- XmlNamespaceMappingCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- DoubleLink.cs
- Propagator.cs
- SystemPens.cs
- InterleavedZipPartStream.cs
- CompilerScopeManager.cs
- MultiTrigger.cs
- WebCategoryAttribute.cs
- DataTableMapping.cs
- RelationshipEndCollection.cs
- SimplePropertyEntry.cs
- XmlAttributeCollection.cs
- AttributeEmitter.cs
- Simplifier.cs
- SingleTagSectionHandler.cs
- ConfigXmlDocument.cs
- PropertyConverter.cs
- _CookieModule.cs
- UriTemplateMatch.cs
- ContextMenuAutomationPeer.cs
- ColorConverter.cs
- Models.cs
- TTSEvent.cs
- ToolStripPanelCell.cs
- EpmTargetPathSegment.cs
- RoutedCommand.cs
- NamespaceCollection.cs
- XPathMultyIterator.cs
- MethodBody.cs
- FilteredAttributeCollection.cs
- QueryOutputWriter.cs
- BitmapData.cs
- AssociationType.cs
- DBCSCodePageEncoding.cs
- BrowserDefinition.cs
- ConfigXmlSignificantWhitespace.cs
- File.cs
- SBCSCodePageEncoding.cs
- SqlPersonalizationProvider.cs
- GridPatternIdentifiers.cs
- TreeViewItemAutomationPeer.cs
- precedingquery.cs
- SendActivity.cs
- GenericUriParser.cs
- SendMailErrorEventArgs.cs
- ConfigXmlCDataSection.cs
- DataGridViewComboBoxColumn.cs
- DragEventArgs.cs
- GridViewColumn.cs
- StateMachineDesignerPaint.cs
- ClientSession.cs
- Compiler.cs
- FormViewDeletedEventArgs.cs
- FactoryGenerator.cs
- RegexGroup.cs
- ForwardPositionQuery.cs
- ParallelRangeManager.cs
- Int16AnimationBase.cs
- ListDataHelper.cs
- ViewGenResults.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CustomAttributeFormatException.cs
- EntityCollection.cs
- ForeignKeyConstraint.cs
- MouseButton.cs
- IndexedWhereQueryOperator.cs
- ObjectItemNoOpAssemblyLoader.cs
- DrawingBrush.cs
- TrustManagerMoreInformation.cs
- TextTreeExtractElementUndoUnit.cs
- PropertyGridEditorPart.cs
- GridEntryCollection.cs
- SqlConnectionStringBuilder.cs
- XmlQueryRuntime.cs
- MemberInfoSerializationHolder.cs
- ClusterRegistryConfigurationProvider.cs
- KnownBoxes.cs
- ApplicationProxyInternal.cs
- RuleSettingsCollection.cs