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
- PingReply.cs
- RIPEMD160Managed.cs
- HtmlInputHidden.cs
- SupportingTokenParameters.cs
- XmlMembersMapping.cs
- TabPanel.cs
- TogglePattern.cs
- SafeIUnknown.cs
- EventBuilder.cs
- DataBindingHandlerAttribute.cs
- CollectionBuilder.cs
- sqlmetadatafactory.cs
- ProgressiveCrcCalculatingStream.cs
- WorkflowDispatchContext.cs
- DummyDataSource.cs
- TargetConverter.cs
- XmlSchemaExternal.cs
- ItemChangedEventArgs.cs
- AdapterSwitches.cs
- EntityStoreSchemaGenerator.cs
- TextAction.cs
- RadioButtonFlatAdapter.cs
- MetadataPropertyAttribute.cs
- UpdatePanelTriggerCollection.cs
- TreeNodeStyleCollection.cs
- ComponentChangedEvent.cs
- UnsupportedPolicyOptionsException.cs
- OutputCacheSection.cs
- VerificationAttribute.cs
- HttpProxyCredentialType.cs
- StateMachineHistory.cs
- TextStore.cs
- MouseButton.cs
- exports.cs
- TextTreeTextNode.cs
- DoubleCollectionConverter.cs
- SystemIPv4InterfaceProperties.cs
- TdsEnums.cs
- MsmqTransportBindingElement.cs
- KnownTypeAttribute.cs
- DefaultTextStoreTextComposition.cs
- ReadOnlyDataSourceView.cs
- MailAddress.cs
- CurrentTimeZone.cs
- CanonicalizationDriver.cs
- _Events.cs
- CodeParameterDeclarationExpression.cs
- ToolboxItemCollection.cs
- TdsParserSessionPool.cs
- AssociationSetMetadata.cs
- BasePattern.cs
- WebPartConnectionsConnectVerb.cs
- Compilation.cs
- PngBitmapDecoder.cs
- DataList.cs
- MultitargetingHelpers.cs
- MimeObjectFactory.cs
- UnknownWrapper.cs
- RtType.cs
- Run.cs
- VirtualPathProvider.cs
- ComboBoxAutomationPeer.cs
- BindingManagerDataErrorEventArgs.cs
- Enlistment.cs
- CollectionBuilder.cs
- DomainConstraint.cs
- UrlMapping.cs
- FileSystemWatcher.cs
- FullTextLine.cs
- ComponentResourceKey.cs
- CompoundFileDeflateTransform.cs
- FileResponseElement.cs
- SmtpFailedRecipientsException.cs
- SchemaSetCompiler.cs
- TemplateBindingExtensionConverter.cs
- ErrorFormatter.cs
- InstanceDataCollectionCollection.cs
- NamespaceDecl.cs
- ChildDocumentBlock.cs
- mediaclock.cs
- IncomingWebResponseContext.cs
- ConstantProjectedSlot.cs
- PathGeometry.cs
- NativeObjectSecurity.cs
- WorkerRequest.cs
- CancellationScope.cs
- ContractTypeNameCollection.cs
- AdCreatedEventArgs.cs
- CodeMethodInvokeExpression.cs
- TextBoxBase.cs
- FigureHelper.cs
- ToolStripMenuItemDesigner.cs
- SchemaHelper.cs
- DesignerSerializationOptionsAttribute.cs
- EntryIndex.cs
- BaseValidatorDesigner.cs
- ClaimTypeRequirement.cs
- MethodBuilder.cs
- WebBrowserUriTypeConverter.cs
- WMIInterop.cs