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
- DecimalAnimationUsingKeyFrames.cs
- ContainerUtilities.cs
- FileAuthorizationModule.cs
- PaintEvent.cs
- BaseResourcesBuildProvider.cs
- HostedElements.cs
- SchemaImporter.cs
- HtmlObjectListAdapter.cs
- WsdlHelpGeneratorElement.cs
- SemanticBasicElement.cs
- FrameworkElement.cs
- PTManager.cs
- InstanceKeyCollisionException.cs
- DecoderExceptionFallback.cs
- SplitterCancelEvent.cs
- BooleanAnimationUsingKeyFrames.cs
- AttributeSetAction.cs
- TdsParserSessionPool.cs
- ValuePattern.cs
- PrintControllerWithStatusDialog.cs
- TextAutomationPeer.cs
- XmlnsPrefixAttribute.cs
- PtsContext.cs
- ImageAnimator.cs
- XmlSchemaExternal.cs
- RadioButtonRenderer.cs
- StylusDevice.cs
- Win32.cs
- TextInfo.cs
- Token.cs
- BooleanSwitch.cs
- FrugalMap.cs
- MatrixConverter.cs
- DictionaryContent.cs
- ProgressChangedEventArgs.cs
- WebPartUtil.cs
- Stylesheet.cs
- SchemaAttDef.cs
- BinaryFormatter.cs
- View.cs
- CellTreeNodeVisitors.cs
- EncodingTable.cs
- TextDecorationLocationValidation.cs
- WinEventTracker.cs
- _OverlappedAsyncResult.cs
- WebControlParameterProxy.cs
- XmlSchemaParticle.cs
- GridViewHeaderRowPresenter.cs
- WebControlAdapter.cs
- ToolStripStatusLabel.cs
- MaskedTextProvider.cs
- TransportConfigurationTypeElementCollection.cs
- EnumDataContract.cs
- RouteTable.cs
- ChannelListenerBase.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- CustomValidator.cs
- WebResponse.cs
- SystemWebCachingSectionGroup.cs
- XmlSchemaSimpleContentRestriction.cs
- SectionInput.cs
- ChildTable.cs
- MeasureData.cs
- ReliableOutputSessionChannel.cs
- InvalidOleVariantTypeException.cs
- _TLSstream.cs
- TreeNodeMouseHoverEvent.cs
- NonVisualControlAttribute.cs
- AccessText.cs
- ItemsControlAutomationPeer.cs
- ComboBoxHelper.cs
- SrgsRule.cs
- EncodingDataItem.cs
- FloaterBaseParagraph.cs
- ClassValidator.cs
- RequestCacheManager.cs
- SqlInternalConnection.cs
- SingleSelectRootGridEntry.cs
- ButtonChrome.cs
- GroupPartitionExpr.cs
- TableCellAutomationPeer.cs
- WriterOutput.cs
- QilInvokeEarlyBound.cs
- TTSEngineTypes.cs
- FixedBufferAttribute.cs
- DefaultBinder.cs
- WebPartConnectionsConfigureVerb.cs
- Content.cs
- UrlPath.cs
- UTF8Encoding.cs
- BindingMAnagerBase.cs
- ListView.cs
- OperationBehaviorAttribute.cs
- ListViewGroupItemCollection.cs
- IgnorePropertiesAttribute.cs
- CrossAppDomainChannel.cs
- TransportListener.cs
- ManagedIStream.cs
- DataKey.cs
- TextView.cs