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
- WhitespaceRuleReader.cs
- HttpApplicationFactory.cs
- HtmlAnchor.cs
- LogRecordSequence.cs
- EntryWrittenEventArgs.cs
- HwndSourceParameters.cs
- HMACRIPEMD160.cs
- ComponentRenameEvent.cs
- TypeUsageBuilder.cs
- Environment.cs
- DelayDesigner.cs
- HyperLinkColumn.cs
- TextTreeObjectNode.cs
- TraceContextRecord.cs
- ServiceThrottlingBehavior.cs
- FormParameter.cs
- CorrelationValidator.cs
- FileDialog_Vista.cs
- SamlSecurityTokenAuthenticator.cs
- CqlErrorHelper.cs
- PropertyEntry.cs
- XpsPartBase.cs
- GACMembershipCondition.cs
- ComboBox.cs
- GlyphingCache.cs
- SqlParameter.cs
- SimpleType.cs
- BCLDebug.cs
- TextOptionsInternal.cs
- SiteMembershipCondition.cs
- SettingsAttributeDictionary.cs
- ISAPIApplicationHost.cs
- SqlDataSourceCommandEventArgs.cs
- MenuItemAutomationPeer.cs
- BitmapFrameEncode.cs
- XmlSchemaCompilationSettings.cs
- HtmlLink.cs
- RepeaterItemEventArgs.cs
- MouseEventArgs.cs
- Visitors.cs
- ExceptionRoutedEventArgs.cs
- ComponentCollection.cs
- ArrayElementGridEntry.cs
- SqlProviderManifest.cs
- ArgumentNullException.cs
- ExtensionDataReader.cs
- VirtualizingPanel.cs
- AsymmetricSignatureFormatter.cs
- Int32EqualityComparer.cs
- StackBuilderSink.cs
- SystemSounds.cs
- GeometryGroup.cs
- UserPersonalizationStateInfo.cs
- ReturnValue.cs
- GroupAggregateExpr.cs
- mda.cs
- SoapInteropTypes.cs
- GridViewDeletedEventArgs.cs
- Environment.cs
- ByteFacetDescriptionElement.cs
- StrongNameMembershipCondition.cs
- FileDialogCustomPlacesCollection.cs
- UserControl.cs
- SecurityTokenParameters.cs
- OracleParameterCollection.cs
- MethodSignatureGenerator.cs
- Deserializer.cs
- InfoCardListRequest.cs
- SqlEnums.cs
- NetStream.cs
- ExeContext.cs
- Scheduler.cs
- DataGridViewCellCancelEventArgs.cs
- ValidatedControlConverter.cs
- SHA384Cng.cs
- BeginStoryboard.cs
- PermissionAttributes.cs
- CellParagraph.cs
- Annotation.cs
- PingOptions.cs
- MouseCaptureWithinProperty.cs
- NetPeerTcpBinding.cs
- WebPartVerbsEventArgs.cs
- HtmlLabelAdapter.cs
- Merger.cs
- QilNode.cs
- Latin1Encoding.cs
- XmlSchemaSimpleContent.cs
- HintTextConverter.cs
- UnmanagedMemoryStream.cs
- PropertyOverridesDialog.cs
- SectionXmlInfo.cs
- TakeOrSkipQueryOperator.cs
- TransactionBehavior.cs
- SchemaNotation.cs
- RuntimeWrappedException.cs
- UshortList2.cs
- ColumnTypeConverter.cs
- ForEachAction.cs
- SearchForVirtualItemEventArgs.cs