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
- CompilationSection.cs
- DiagnosticsConfigurationHandler.cs
- LayoutInformation.cs
- DbCommandTree.cs
- wmiprovider.cs
- HotSpotCollection.cs
- RegistrySecurity.cs
- TrackBarRenderer.cs
- AnnotationComponentManager.cs
- SafeLibraryHandle.cs
- ArrayList.cs
- ScriptMethodAttribute.cs
- Encoder.cs
- PKCS1MaskGenerationMethod.cs
- BufferBuilder.cs
- SQLChars.cs
- ConfigXmlSignificantWhitespace.cs
- BuildManagerHost.cs
- PropertyInformation.cs
- MsmqInputChannel.cs
- SafeNativeMethods.cs
- PreparingEnlistment.cs
- ChangeConflicts.cs
- LingerOption.cs
- SectionRecord.cs
- DisplayMemberTemplateSelector.cs
- DateTimeUtil.cs
- TreeViewImageIndexConverter.cs
- RadioButtonFlatAdapter.cs
- FieldDescriptor.cs
- EditorPartChrome.cs
- ProfileElement.cs
- AtomServiceDocumentSerializer.cs
- ApplicationContext.cs
- PartialArray.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- WebPartHeaderCloseVerb.cs
- TrustLevelCollection.cs
- WizardPanelChangingEventArgs.cs
- HttpHandlerActionCollection.cs
- X509ImageLogo.cs
- SqlFactory.cs
- FactoryGenerator.cs
- WebPartTracker.cs
- DbParameterCollectionHelper.cs
- NumericUpDown.cs
- WebPartsSection.cs
- ActivityInterfaces.cs
- MetadataProperty.cs
- NameValuePermission.cs
- ContentPosition.cs
- backend.cs
- Listbox.cs
- WorkflowIdleElement.cs
- CommonRemoteMemoryBlock.cs
- TextSearch.cs
- MemberCollection.cs
- SoundPlayer.cs
- TransformGroup.cs
- AuthenticationManager.cs
- SystemIPAddressInformation.cs
- RelationshipSet.cs
- DeferredTextReference.cs
- ButtonPopupAdapter.cs
- MultipleFilterMatchesException.cs
- BaseValidatorDesigner.cs
- XNodeSchemaApplier.cs
- CounterCreationDataCollection.cs
- NavigatorInput.cs
- KeyPressEvent.cs
- ContainerControl.cs
- RangeValueProviderWrapper.cs
- ReadOnlyCollectionBase.cs
- CodeThrowExceptionStatement.cs
- InternalConfigConfigurationFactory.cs
- BindingSourceDesigner.cs
- objectresult_tresulttype.cs
- ButtonPopupAdapter.cs
- GridErrorDlg.cs
- StreamGeometry.cs
- HttpAsyncResult.cs
- TemplateBamlRecordReader.cs
- GrammarBuilderPhrase.cs
- TextServicesProperty.cs
- DiscreteKeyFrames.cs
- SqlClientMetaDataCollectionNames.cs
- Walker.cs
- UnsafeNativeMethods.cs
- WebPartConnectionsConnectVerb.cs
- TableStyle.cs
- LogAppendAsyncResult.cs
- GuidelineSet.cs
- DataSetSchema.cs
- AdapterDictionary.cs
- DataGridItemEventArgs.cs
- ScrollBarRenderer.cs
- DataGridAddNewRow.cs
- DecoderExceptionFallback.cs
- MessageDecoder.cs