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
- ApplicationFileParser.cs
- DocumentPageView.cs
- GeometryGroup.cs
- BoolExpressionVisitors.cs
- SqlUDTStorage.cs
- OdbcConnectionPoolProviderInfo.cs
- SqlHelper.cs
- EpmCustomContentSerializer.cs
- SafeThreadHandle.cs
- QuaternionAnimationUsingKeyFrames.cs
- __Filters.cs
- Interlocked.cs
- BooleanKeyFrameCollection.cs
- EntityProviderServices.cs
- RouteValueDictionary.cs
- PageContentAsyncResult.cs
- RegexCaptureCollection.cs
- TranslateTransform.cs
- SrgsDocumentParser.cs
- ChtmlSelectionListAdapter.cs
- RecognizerBase.cs
- loginstatus.cs
- IntranetCredentialPolicy.cs
- DataGridCellItemAutomationPeer.cs
- IISMapPath.cs
- SatelliteContractVersionAttribute.cs
- ExpressionTextBox.xaml.cs
- RbTree.cs
- SchemaTableColumn.cs
- WindowsToolbar.cs
- GlobalizationAssembly.cs
- CanonicalFontFamilyReference.cs
- CalloutQueueItem.cs
- DetailsViewInsertEventArgs.cs
- DoubleCollectionConverter.cs
- IntegerValidator.cs
- URLIdentityPermission.cs
- ToolStripContentPanelRenderEventArgs.cs
- StyleSheetRefUrlEditor.cs
- VirtualDirectoryMappingCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- EUCJPEncoding.cs
- SecurityUtils.cs
- MTConfigUtil.cs
- ZoneMembershipCondition.cs
- XmlSchemaCompilationSettings.cs
- Soap12ProtocolReflector.cs
- Bidi.cs
- DupHandleConnectionReader.cs
- BitStream.cs
- XXXOnTypeBuilderInstantiation.cs
- WebControl.cs
- ClientConfigPaths.cs
- KeyedQueue.cs
- ScriptResourceHandler.cs
- DependentTransaction.cs
- DbMetaDataColumnNames.cs
- StyleSheetRefUrlEditor.cs
- SurrogateEncoder.cs
- UnionCqlBlock.cs
- PropertyInfo.cs
- SqlTrackingService.cs
- ClientCredentialsElement.cs
- ReadOnlyCollectionBase.cs
- TextSelectionHelper.cs
- ToolStripGripRenderEventArgs.cs
- WindowsFormsHostAutomationPeer.cs
- InvalidWMPVersionException.cs
- Line.cs
- HandledEventArgs.cs
- CodeAttributeArgument.cs
- SizeConverter.cs
- X509Chain.cs
- SortedList.cs
- XmlWrappingWriter.cs
- CopyNodeSetAction.cs
- UrlAuthorizationModule.cs
- NotificationContext.cs
- ApplicationSecurityInfo.cs
- Baml2006KnownTypes.cs
- CompoundFileDeflateTransform.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DiscreteKeyFrames.cs
- SudsWriter.cs
- DomainUpDown.cs
- DataObjectCopyingEventArgs.cs
- OracleBFile.cs
- HMACSHA1.cs
- Funcletizer.cs
- ListDictionaryInternal.cs
- SoapHeaders.cs
- CharacterShapingProperties.cs
- WebRequestModulesSection.cs
- QueryOutputWriter.cs
- Encoding.cs
- FixedSOMFixedBlock.cs
- HyperLinkField.cs
- MsmqIntegrationProcessProtocolHandler.cs
- RoutedEvent.cs
- HttpEncoder.cs