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
- GridPattern.cs
- SqlSelectStatement.cs
- MobileControlDesigner.cs
- MutexSecurity.cs
- MruCache.cs
- Pen.cs
- DesignColumnCollection.cs
- ZoneMembershipCondition.cs
- PriorityBindingExpression.cs
- PeerPresenceInfo.cs
- Header.cs
- UniqueEventHelper.cs
- SoapSchemaImporter.cs
- TrackingMemoryStreamFactory.cs
- shaperfactoryquerycacheentry.cs
- _SslStream.cs
- WindowsTooltip.cs
- XmlSchemaIdentityConstraint.cs
- ClientSettingsSection.cs
- ZipFileInfoCollection.cs
- SqlDataSourceEnumerator.cs
- QuaternionAnimation.cs
- DataGridSortingEventArgs.cs
- PropertyChangedEventArgs.cs
- _MultipleConnectAsync.cs
- BindingMemberInfo.cs
- MimeMapping.cs
- Maps.cs
- LogicalTreeHelper.cs
- ConnectionManagementSection.cs
- InvokeSchedule.cs
- XmlSchema.cs
- OdbcHandle.cs
- RoutedEventArgs.cs
- SelectionWordBreaker.cs
- RIPEMD160.cs
- WebPermission.cs
- MimeWriter.cs
- QueryCacheManager.cs
- SQLDoubleStorage.cs
- QueryableDataSourceHelper.cs
- FrameworkContentElementAutomationPeer.cs
- WebPartZoneBase.cs
- Simplifier.cs
- NominalTypeEliminator.cs
- StateDesignerConnector.cs
- ComponentEditorForm.cs
- columnmapkeybuilder.cs
- DataBoundControlAdapter.cs
- CryptoApi.cs
- StreamInfo.cs
- SortedDictionary.cs
- HasCopySemanticsAttribute.cs
- documentsequencetextpointer.cs
- ApplicationException.cs
- SecuritySessionFilter.cs
- AppLevelCompilationSectionCache.cs
- SQLByte.cs
- SizeF.cs
- CodeParameterDeclarationExpression.cs
- NestedContainer.cs
- ConfigurationLoaderException.cs
- EditCommandColumn.cs
- CodeNamespace.cs
- EnumConverter.cs
- XmlnsDictionary.cs
- RefreshPropertiesAttribute.cs
- ThreadStaticAttribute.cs
- BindUriHelper.cs
- DispatchWrapper.cs
- CachingHintValidation.cs
- ZipIOExtraField.cs
- DataContractSerializerSection.cs
- SecurityManager.cs
- XslNumber.cs
- WmlTextViewAdapter.cs
- Soap11ServerProtocol.cs
- KeyPullup.cs
- PolicyManager.cs
- TcpServerChannel.cs
- StrongName.cs
- HttpDictionary.cs
- Currency.cs
- ToolStripContentPanelRenderEventArgs.cs
- UInt16Storage.cs
- Int64AnimationUsingKeyFrames.cs
- FragmentNavigationEventArgs.cs
- FixedPageAutomationPeer.cs
- XPathDescendantIterator.cs
- TraversalRequest.cs
- DataFormat.cs
- DataRelationCollection.cs
- MessageSecurityOverMsmq.cs
- GridItemPattern.cs
- CodeIterationStatement.cs
- IPAddress.cs
- TextRangeEditLists.cs
- Listbox.cs
- DataGridItemEventArgs.cs
- EntityProviderFactory.cs