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
- PrintingPermissionAttribute.cs
- DataGridViewCellCancelEventArgs.cs
- GlyphTypeface.cs
- BinaryMethodMessage.cs
- validationstate.cs
- DataBoundControlHelper.cs
- WebCategoryAttribute.cs
- DataGridColumn.cs
- FrameworkContentElement.cs
- Point.cs
- ScriptResourceAttribute.cs
- CardSpaceException.cs
- EventHandlerList.cs
- MessageQueue.cs
- CriticalFinalizerObject.cs
- HttpContext.cs
- ContentPresenter.cs
- PathFigureCollection.cs
- TransformProviderWrapper.cs
- SymmetricKeyWrap.cs
- PrintPreviewControl.cs
- RenderData.cs
- XmlWriter.cs
- SAPICategories.cs
- X509ChainPolicy.cs
- BinaryMethodMessage.cs
- EntityTransaction.cs
- AdministrationHelpers.cs
- SHA512Managed.cs
- WebPartsPersonalization.cs
- FileDialogCustomPlace.cs
- FileNotFoundException.cs
- LateBoundBitmapDecoder.cs
- UpdateProgress.cs
- EndpointAddress10.cs
- ClientOperation.cs
- ErrorStyle.cs
- ArglessEventHandlerProxy.cs
- AssemblyCache.cs
- EventArgs.cs
- SessionIDManager.cs
- ByteStack.cs
- DuplicateContext.cs
- PageThemeParser.cs
- BitmapPalettes.cs
- AssemblyBuilder.cs
- PageThemeParser.cs
- ProcessInfo.cs
- Mutex.cs
- SHA1Managed.cs
- HttpCacheParams.cs
- DrawingGroup.cs
- ComponentManagerBroker.cs
- CultureData.cs
- MemberCollection.cs
- ThreadExceptionEvent.cs
- ArrayConverter.cs
- LinearGradientBrush.cs
- CriticalFinalizerObject.cs
- UnsafeNativeMethods.cs
- MultipartContentParser.cs
- HTTPNotFoundHandler.cs
- ObjectTypeMapping.cs
- WorkflowWebService.cs
- JavaScriptSerializer.cs
- Message.cs
- SvcFileManager.cs
- MSAANativeProvider.cs
- EntityCommandExecutionException.cs
- WebPartUtil.cs
- PropagatorResult.cs
- SystemResourceHost.cs
- StringAnimationUsingKeyFrames.cs
- SqlRowUpdatingEvent.cs
- ProviderSettingsCollection.cs
- SiteMapDataSourceView.cs
- CachedTypeface.cs
- Int32RectConverter.cs
- SqlFunctionAttribute.cs
- ImageSourceValueSerializer.cs
- METAHEADER.cs
- ContactManager.cs
- XmlConvert.cs
- JsonClassDataContract.cs
- Rotation3D.cs
- TypefaceMap.cs
- OracleBinary.cs
- ButtonBase.cs
- MetadataPropertyAttribute.cs
- DesigntimeLicenseContext.cs
- WebEventTraceProvider.cs
- ListParagraph.cs
- RefreshInfo.cs
- KoreanCalendar.cs
- GraphicsPath.cs
- MiniParameterInfo.cs
- SafeEventLogWriteHandle.cs
- _SslState.cs
- HMACSHA1.cs
- NetworkInformationException.cs