Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // 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
- ApplicationActivator.cs
- StaticExtensionConverter.cs
- ExceptionRoutedEventArgs.cs
- EventRouteFactory.cs
- TableColumnCollection.cs
- ImageEditor.cs
- cryptoapiTransform.cs
- EventDriven.cs
- Int32CAMarshaler.cs
- SchemaImporter.cs
- NoResizeHandleGlyph.cs
- DataGridView.cs
- AssemblyCollection.cs
- SiteMapProvider.cs
- BaseParser.cs
- MetaColumn.cs
- Expression.cs
- PowerStatus.cs
- DataGridViewHitTestInfo.cs
- EnumerableCollectionView.cs
- DbConnectionPoolCounters.cs
- XomlDesignerLoader.cs
- CriticalExceptions.cs
- TextEditorParagraphs.cs
- UiaCoreTypesApi.cs
- DiscoveryMessageSequenceGenerator.cs
- Pool.cs
- BindingManagerDataErrorEventArgs.cs
- DrawingContext.cs
- InstanceHandle.cs
- SessionStateUtil.cs
- RemotingConfigParser.cs
- StoryFragments.cs
- ExpressionConverter.cs
- RegexWorker.cs
- StateMachineExecutionState.cs
- TouchesCapturedWithinProperty.cs
- CatalogZoneBase.cs
- ValueTable.cs
- XmlDataProvider.cs
- __TransparentProxy.cs
- MessageQueuePermissionEntryCollection.cs
- ClientUrlResolverWrapper.cs
- TreeNodeBindingCollection.cs
- ColumnMap.cs
- ZipIOLocalFileHeader.cs
- PointAnimationClockResource.cs
- PKCS1MaskGenerationMethod.cs
- LightweightCodeGenerator.cs
- ISAPIWorkerRequest.cs
- SchemaName.cs
- OracleTransaction.cs
- GatewayIPAddressInformationCollection.cs
- CharAnimationBase.cs
- BinaryExpressionHelper.cs
- CachedPathData.cs
- ErrorView.xaml.cs
- X509Utils.cs
- BooleanFunctions.cs
- WriteTimeStream.cs
- BindingGroup.cs
- EventRouteFactory.cs
- DecoderExceptionFallback.cs
- DecoratedNameAttribute.cs
- WebConfigurationFileMap.cs
- TimelineGroup.cs
- TextChange.cs
- ProtocolsConfiguration.cs
- SamlAttribute.cs
- BCLDebug.cs
- DataGridViewColumnTypeEditor.cs
- HttpHandlerAction.cs
- NavigatorInput.cs
- SymDocumentType.cs
- ColumnClickEvent.cs
- LOSFormatter.cs
- DiscardableAttribute.cs
- RepeaterItemEventArgs.cs
- DiscoveryDefaults.cs
- ValidationUtility.cs
- ThemeDirectoryCompiler.cs
- PropertyEmitterBase.cs
- XmlQuerySequence.cs
- CultureTable.cs
- WebPartZoneCollection.cs
- XmlDsigSep2000.cs
- DataGridBoolColumn.cs
- ReflectPropertyDescriptor.cs
- CaretElement.cs
- RegexBoyerMoore.cs
- Binding.cs
- RawUIStateInputReport.cs
- StrokeRenderer.cs
- DefaultValueMapping.cs
- SelectionEditor.cs
- NameValueFileSectionHandler.cs
- ContentControl.cs
- DateTimeUtil.cs
- XmlReader.cs
- ListItemCollection.cs