Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WindowsTreeView.cs
- CustomValidator.cs
- RuntimeHelpers.cs
- SoapIgnoreAttribute.cs
- HandoffBehavior.cs
- QilTernary.cs
- ExpressionBindingCollection.cs
- CodeVariableReferenceExpression.cs
- ConsumerConnectionPointCollection.cs
- KnownBoxes.cs
- DashStyles.cs
- LambdaCompiler.Statements.cs
- HtmlTextArea.cs
- GenericRootAutomationPeer.cs
- Highlights.cs
- Properties.cs
- CalendarTable.cs
- ImageKeyConverter.cs
- NodeLabelEditEvent.cs
- NCryptNative.cs
- WebBaseEventKeyComparer.cs
- ResourceKey.cs
- ToolStripComboBox.cs
- TranslateTransform.cs
- AttributeEmitter.cs
- OleServicesContext.cs
- entityreference_tresulttype.cs
- Translator.cs
- XPathEmptyIterator.cs
- WasHostedComPlusFactory.cs
- PropertyConverter.cs
- BufferedWebEventProvider.cs
- ImageAttributes.cs
- VirtualPathData.cs
- FtpWebResponse.cs
- GridViewSelectEventArgs.cs
- HighlightVisual.cs
- Misc.cs
- MarkerProperties.cs
- XmlCharType.cs
- Rect3DValueSerializer.cs
- MatrixCamera.cs
- LabelLiteral.cs
- SQLSingle.cs
- LiteralControl.cs
- CodeTypeParameter.cs
- GifBitmapDecoder.cs
- RepeaterCommandEventArgs.cs
- BindUriHelper.cs
- DbDataSourceEnumerator.cs
- PointAnimationClockResource.cs
- Int64.cs
- RuleInfoComparer.cs
- NeutralResourcesLanguageAttribute.cs
- SHA1CryptoServiceProvider.cs
- KeyFrames.cs
- SafeThemeHandle.cs
- DataServiceEntityAttribute.cs
- WmiInstallComponent.cs
- StorageMappingFragment.cs
- BuildManagerHost.cs
- EntityContainerEmitter.cs
- LingerOption.cs
- ScriptResourceHandler.cs
- WorkflowItemPresenter.cs
- OdbcFactory.cs
- SecurityIdentifierElementCollection.cs
- TreeViewItemAutomationPeer.cs
- PathTooLongException.cs
- Trigger.cs
- FlowDocumentFormatter.cs
- IdentityElement.cs
- GeometryHitTestParameters.cs
- QuaternionKeyFrameCollection.cs
- validationstate.cs
- SeverityFilter.cs
- EntityContainerEmitter.cs
- HitTestParameters.cs
- ErrorRuntimeConfig.cs
- CorrelationQueryBehavior.cs
- X509IssuerSerialKeyIdentifierClause.cs
- BehaviorEditorPart.cs
- PlainXmlWriter.cs
- TimeSpanStorage.cs
- Matrix3DValueSerializer.cs
- DES.cs
- SqlCommandSet.cs
- SamlSecurityToken.cs
- Label.cs
- ObjectRef.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SqlFunctionAttribute.cs
- Socket.cs
- XPathSelfQuery.cs
- WebPartPersonalization.cs
- XamlSerializerUtil.cs
- SiteMapNodeItem.cs
- XmlTextWriter.cs
- ProcessProtocolHandler.cs
- CodeGenHelper.cs