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
- XNodeValidator.cs
- FileUtil.cs
- MailAddressCollection.cs
- SchemaImporterExtensionElement.cs
- ClientSideQueueItem.cs
- CodeSubDirectoriesCollection.cs
- ProcessModelSection.cs
- DataGridView.cs
- HierarchicalDataSourceControl.cs
- LocalValueEnumerator.cs
- DelegateArgumentReference.cs
- RootBrowserWindowAutomationPeer.cs
- ColorKeyFrameCollection.cs
- XmlAtomErrorReader.cs
- SecurityTokenParametersEnumerable.cs
- BooleanStorage.cs
- HttpCachePolicyElement.cs
- Listbox.cs
- SchemaRegistration.cs
- PreservationFileReader.cs
- WorkflowDesigner.cs
- ConvertEvent.cs
- HitTestFilterBehavior.cs
- FixedPage.cs
- PolicyStatement.cs
- ConsumerConnectionPoint.cs
- SoapFormatter.cs
- RayMeshGeometry3DHitTestResult.cs
- FileDataSourceCache.cs
- SqlBooleanizer.cs
- DocumentCollection.cs
- Knowncolors.cs
- FunctionDetailsReader.cs
- PipelineModuleStepContainer.cs
- SignHashRequest.cs
- FocusWithinProperty.cs
- WhileDesigner.cs
- ThrowOnMultipleAssignment.cs
- DataGridViewLinkColumn.cs
- Crc32Helper.cs
- ContainerUtilities.cs
- _FtpDataStream.cs
- ExclusiveTcpTransportManager.cs
- shaperfactoryquerycacheentry.cs
- safesecurityhelperavalon.cs
- TransformDescriptor.cs
- TypeElement.cs
- _SslStream.cs
- TypeDependencyAttribute.cs
- StylusPoint.cs
- DiagnosticsConfiguration.cs
- TreeViewImageIndexConverter.cs
- MyContact.cs
- PostBackTrigger.cs
- ComboBoxAutomationPeer.cs
- UIAgentCrashedException.cs
- DocumentScope.cs
- Menu.cs
- ChildDocumentBlock.cs
- CqlIdentifiers.cs
- BoundField.cs
- DynamicPropertyHolder.cs
- AncillaryOps.cs
- StatusBar.cs
- safemediahandle.cs
- StoreContentChangedEventArgs.cs
- ResourceBinder.cs
- WebPartRestoreVerb.cs
- TypeRestriction.cs
- StatusStrip.cs
- Int32AnimationUsingKeyFrames.cs
- ProxyWebPartManagerDesigner.cs
- PersonalizationStateQuery.cs
- ObjectDataSourceStatusEventArgs.cs
- ErrorWebPart.cs
- DesignerTransaction.cs
- HttpListenerElement.cs
- BufferBuilder.cs
- DocumentGridPage.cs
- TextEffect.cs
- HttpApplication.cs
- DependencyPropertyKind.cs
- ByteStream.cs
- metrodevice.cs
- AuthenticateEventArgs.cs
- FormClosingEvent.cs
- SmiTypedGetterSetter.cs
- DataGridSortCommandEventArgs.cs
- CriticalExceptions.cs
- UrlPath.cs
- PageBreakRecord.cs
- SignalGate.cs
- BooleanProjectedSlot.cs
- TextTreeInsertUndoUnit.cs
- XmlTypeMapping.cs
- ControlBindingsCollection.cs
- ApplicationId.cs
- ScrollProviderWrapper.cs
- CheckBoxPopupAdapter.cs
- DataControlLinkButton.cs