Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- VirtualDirectoryMapping.cs
- JavaScriptObjectDeserializer.cs
- IntSumAggregationOperator.cs
- XPathSelectionIterator.cs
- SystemColorTracker.cs
- AvtEvent.cs
- sqlpipe.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DictionaryBase.cs
- OutputCacheProfileCollection.cs
- bindurihelper.cs
- StructuredTypeInfo.cs
- HttpModuleAction.cs
- Internal.cs
- UtilityExtension.cs
- OleDbError.cs
- MultiplexingFormatMapping.cs
- Keyboard.cs
- HostedHttpRequestAsyncResult.cs
- DelayedRegex.cs
- EffectiveValueEntry.cs
- InkCanvasSelection.cs
- UserControl.cs
- OutputScope.cs
- ElementNotAvailableException.cs
- BrowserCapabilitiesFactoryBase.cs
- TableDesigner.cs
- NonVisualControlAttribute.cs
- StringAttributeCollection.cs
- StylusButtonEventArgs.cs
- CatalogPartCollection.cs
- MenuItemCollection.cs
- OdbcPermission.cs
- XmlNodeList.cs
- TreeView.cs
- _Connection.cs
- ExpressionConverter.cs
- WebPartConnectVerb.cs
- BaseConfigurationRecord.cs
- EncryptedPackage.cs
- MetricEntry.cs
- DbConnectionPoolGroup.cs
- FrameworkContentElement.cs
- InkCanvasInnerCanvas.cs
- CodeDomDecompiler.cs
- DictionaryEntry.cs
- SerializerDescriptor.cs
- DateTimeFormatInfoScanner.cs
- TargetConverter.cs
- SrgsOneOf.cs
- DataDocumentXPathNavigator.cs
- StorageSetMapping.cs
- XmlAttributeCollection.cs
- ActivationServices.cs
- DynamicPropertyHolder.cs
- HybridDictionary.cs
- TreeNode.cs
- AnimationTimeline.cs
- FilterQueryOptionExpression.cs
- AddingNewEventArgs.cs
- ListSortDescription.cs
- FormViewPageEventArgs.cs
- OutputCacheProfile.cs
- DataTransferEventArgs.cs
- ProfileModule.cs
- Point.cs
- DbCommandDefinition.cs
- TableDetailsCollection.cs
- Query.cs
- ContextMenu.cs
- ExpandedWrapper.cs
- XmlDictionaryReaderQuotas.cs
- LinqDataSourceContextData.cs
- ISessionStateStore.cs
- UserUseLicenseDictionaryLoader.cs
- Graph.cs
- ProcessModule.cs
- BeginEvent.cs
- PathTooLongException.cs
- TouchEventArgs.cs
- SigningCredentials.cs
- ValueUnavailableException.cs
- SystemFonts.cs
- DelegateHelpers.cs
- ProxyManager.cs
- DoubleAnimation.cs
- ContentOperations.cs
- TextDecorationUnitValidation.cs
- InstanceCollisionException.cs
- RuntimeArgumentHandle.cs
- WebDisplayNameAttribute.cs
- NativeMethods.cs
- BasicCellRelation.cs
- StandardTransformFactory.cs
- Pkcs7Recipient.cs
- ContainerSelectorActiveEvent.cs
- Funcletizer.cs
- Matrix3D.cs
- PolicyStatement.cs
- DesignerAttribute.cs