Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- EntityContainer.cs
- DataRecordInternal.cs
- BinHexEncoding.cs
- Metafile.cs
- EventNotify.cs
- SQLSingle.cs
- log.cs
- CustomAttributeSerializer.cs
- NativeMethods.cs
- DataServiceHost.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SafeCryptHandles.cs
- PasswordRecovery.cs
- MobileFormsAuthentication.cs
- TracedNativeMethods.cs
- HttpHandlerActionCollection.cs
- BaseCollection.cs
- AccessibleObject.cs
- XmlUnspecifiedAttribute.cs
- WsiProfilesElementCollection.cs
- Dictionary.cs
- ColorConvertedBitmap.cs
- Win32Native.cs
- WebBrowserNavigatingEventHandler.cs
- BitmapVisualManager.cs
- LiteralControl.cs
- Light.cs
- CommonProperties.cs
- IPGlobalProperties.cs
- TextServicesHost.cs
- SqlCommandBuilder.cs
- MULTI_QI.cs
- BamlVersionHeader.cs
- DocumentApplicationJournalEntry.cs
- ParseNumbers.cs
- DesignerObjectListAdapter.cs
- XmlSchemaAttributeGroupRef.cs
- StrokeCollectionDefaultValueFactory.cs
- DataGridDetailsPresenter.cs
- HuffmanTree.cs
- SqlConnectionManager.cs
- ValidationEventArgs.cs
- DocumentSequence.cs
- ListMarkerSourceInfo.cs
- DebuggerAttributes.cs
- ComponentCommands.cs
- ExpressionBuilderCollection.cs
- LOSFormatter.cs
- ScrollBar.cs
- ToolTipService.cs
- Bitmap.cs
- SerTrace.cs
- ValueExpressions.cs
- XmlDigitalSignatureProcessor.cs
- DataGridViewTextBoxEditingControl.cs
- ADMembershipUser.cs
- MatrixAnimationUsingPath.cs
- XsltArgumentList.cs
- ResolveNameEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- BasicBrowserDialog.designer.cs
- ButtonChrome.cs
- DescendantOverDescendantQuery.cs
- WhitespaceRule.cs
- HitTestWithGeometryDrawingContextWalker.cs
- OrderingInfo.cs
- DefinitionBase.cs
- IndexedWhereQueryOperator.cs
- Compensation.cs
- XmlNullResolver.cs
- MSAAEventDispatcher.cs
- SendDesigner.xaml.cs
- DataObject.cs
- SpellerStatusTable.cs
- ToolStripHighContrastRenderer.cs
- XPathDocument.cs
- ClientSettings.cs
- RuntimeArgumentHandle.cs
- WinEventQueueItem.cs
- ComponentDispatcher.cs
- StringValueSerializer.cs
- AuthStoreRoleProvider.cs
- HtmlTableRowCollection.cs
- AlgoModule.cs
- HScrollBar.cs
- dataobject.cs
- HyperLinkField.cs
- SessionStateModule.cs
- ServiceNameCollection.cs
- RenderData.cs
- MetadataCache.cs
- TemplateField.cs
- EndPoint.cs
- ContractType.cs
- ComplexBindingPropertiesAttribute.cs
- OracleCommand.cs
- RefExpr.cs
- MeshGeometry3D.cs
- PageClientProxyGenerator.cs
- ExceptionUtil.cs