Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SafeNativeMethods.cs
- validation.cs
- DoubleLink.cs
- UniqueConstraint.cs
- XPathNodeList.cs
- TagMapInfo.cs
- JavaScriptObjectDeserializer.cs
- XmlDataCollection.cs
- ClientRolePrincipal.cs
- SqlUserDefinedTypeAttribute.cs
- HierarchicalDataBoundControlAdapter.cs
- ExpressionConverter.cs
- DllNotFoundException.cs
- CodeSubDirectoriesCollection.cs
- ManipulationStartingEventArgs.cs
- pingexception.cs
- EncryptedKey.cs
- LineVisual.cs
- PasswordTextNavigator.cs
- PrefixQName.cs
- BulletDecorator.cs
- Path.cs
- ServiceProviders.cs
- TableLayoutPanel.cs
- Visual3DCollection.cs
- UIAgentInitializationException.cs
- SqlError.cs
- DtdParser.cs
- DataService.cs
- AbsoluteQuery.cs
- CalendarDateRange.cs
- WindowInteractionStateTracker.cs
- TablePatternIdentifiers.cs
- WebPartMinimizeVerb.cs
- OleDbWrapper.cs
- MultiSelectRootGridEntry.cs
- ScrollableControlDesigner.cs
- GenericsInstances.cs
- SerialPort.cs
- CacheChildrenQuery.cs
- InternalConfigConfigurationFactory.cs
- FileCodeGroup.cs
- ListComponentEditor.cs
- DictionaryTraceRecord.cs
- SessionStateUtil.cs
- CodeCompileUnit.cs
- AddInControllerImpl.cs
- CounterSample.cs
- GatewayIPAddressInformationCollection.cs
- CalendarDayButton.cs
- PropertyCondition.cs
- PeerDuplexChannel.cs
- EmbeddedMailObject.cs
- SqlUserDefinedTypeAttribute.cs
- WebServiceErrorEvent.cs
- PrePrepareMethodAttribute.cs
- StringResourceManager.cs
- SatelliteContractVersionAttribute.cs
- SchemaInfo.cs
- DataGridViewAdvancedBorderStyle.cs
- EdmItemError.cs
- TextEffect.cs
- CodeThrowExceptionStatement.cs
- MemoryMappedFile.cs
- DataObjectFieldAttribute.cs
- TemplateBuilder.cs
- HeaderedItemsControl.cs
- EncryptedData.cs
- AstTree.cs
- UnsafeNativeMethods.cs
- UpdatePanelTrigger.cs
- DebugControllerThread.cs
- SettingsPropertyValue.cs
- MutexSecurity.cs
- AxisAngleRotation3D.cs
- ItemChangedEventArgs.cs
- DataServiceKeyAttribute.cs
- ContextMenuStrip.cs
- IISMapPath.cs
- WmlSelectionListAdapter.cs
- TypeToken.cs
- InputMethodStateTypeInfo.cs
- FieldTemplateFactory.cs
- LinqDataSourceDeleteEventArgs.cs
- CodeDelegateCreateExpression.cs
- ColorContext.cs
- COM2FontConverter.cs
- VirtualizedCellInfoCollection.cs
- TypographyProperties.cs
- HandleRef.cs
- XmlParserContext.cs
- JsonGlobals.cs
- SafeRightsManagementPubHandle.cs
- Encoder.cs
- TypeDescriptor.cs
- ColumnHeaderConverter.cs
- AnnotationAdorner.cs
- SignatureTargetIdManager.cs
- DataBindingCollection.cs
- PersonalizationEntry.cs