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
- Adorner.cs
- ErrorEventArgs.cs
- ChannelServices.cs
- DataServiceQueryOfT.cs
- HtmlInputImage.cs
- TextPatternIdentifiers.cs
- OracleDataReader.cs
- DoubleLinkListEnumerator.cs
- LogLogRecordHeader.cs
- initElementDictionary.cs
- PersonalizationStateInfo.cs
- EdgeProfileValidation.cs
- CheckBoxList.cs
- XPathNavigatorKeyComparer.cs
- AggregateNode.cs
- CodePageEncoding.cs
- GeneralTransform3DCollection.cs
- OleDbSchemaGuid.cs
- Propagator.ExtentPlaceholderCreator.cs
- EntryPointNotFoundException.cs
- OperationDescriptionCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- X509CertificateChain.cs
- RSACryptoServiceProvider.cs
- Deflater.cs
- ApplicationActivator.cs
- ToolStripGripRenderEventArgs.cs
- SqlMethodTransformer.cs
- __ComObject.cs
- HttpProtocolReflector.cs
- UnorderedHashRepartitionStream.cs
- PropertyIDSet.cs
- SqlLiftIndependentRowExpressions.cs
- SelectedDatesCollection.cs
- ZoneMembershipCondition.cs
- SmiEventSink_DeferedProcessing.cs
- DesignerAutoFormat.cs
- InputScopeManager.cs
- SchemaCreator.cs
- MarkupExtensionParser.cs
- ScriptingSectionGroup.cs
- ListViewSelectEventArgs.cs
- DataListCommandEventArgs.cs
- MetadataSource.cs
- ResourcePermissionBase.cs
- latinshape.cs
- LocalizationComments.cs
- ComPlusServiceLoader.cs
- RegexGroupCollection.cs
- DirectoryNotFoundException.cs
- CommandBinding.cs
- DataListItemCollection.cs
- DbBuffer.cs
- ConditionCollection.cs
- DrawingImage.cs
- ACE.cs
- SmtpDigestAuthenticationModule.cs
- SerializerDescriptor.cs
- CellTreeNodeVisitors.cs
- PermissionAttributes.cs
- TextServicesCompartment.cs
- Deflater.cs
- Mapping.cs
- Dynamic.cs
- CommandBinding.cs
- MethodAccessException.cs
- WindowsGraphicsCacheManager.cs
- EntityCollectionChangedParams.cs
- WebPartMinimizeVerb.cs
- RoutedPropertyChangedEventArgs.cs
- ImageField.cs
- InfoCardKeyedHashAlgorithm.cs
- FileSystemInfo.cs
- safesecurityhelperavalon.cs
- ParentQuery.cs
- CellQuery.cs
- RolePrincipal.cs
- BaseDataBoundControl.cs
- Typography.cs
- PreviewKeyDownEventArgs.cs
- XmlSerializerOperationGenerator.cs
- CustomMenuItemCollection.cs
- PrincipalPermission.cs
- X509SecurityTokenProvider.cs
- BackgroundWorker.cs
- OleDbStruct.cs
- SatelliteContractVersionAttribute.cs
- DataGridViewColumn.cs
- DataGridViewTopRowAccessibleObject.cs
- xdrvalidator.cs
- LocalBuilder.cs
- AudienceUriMode.cs
- ImpersonateTokenRef.cs
- ProviderException.cs
- AnnotationObservableCollection.cs
- MessageHeaderDescriptionCollection.cs
- ColumnCollection.cs
- SchemaNamespaceManager.cs
- SchemaInfo.cs
- UriWriter.cs