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
- EpmContentDeSerializerBase.cs
- DataGridViewComboBoxEditingControl.cs
- SortQuery.cs
- PaperSize.cs
- _NetRes.cs
- SerializableAttribute.cs
- HtmlProps.cs
- RenderTargetBitmap.cs
- LinkedList.cs
- ReliableMessagingVersion.cs
- FloatSumAggregationOperator.cs
- StrokeFIndices.cs
- HttpFileCollection.cs
- UshortList2.cs
- DataSourceControl.cs
- _AcceptOverlappedAsyncResult.cs
- RelationalExpressions.cs
- WebPartMinimizeVerb.cs
- JsonEncodingStreamWrapper.cs
- WebProxyScriptElement.cs
- ResourceDictionaryCollection.cs
- PieceDirectory.cs
- HMACSHA512.cs
- ScalarOps.cs
- DynamicObjectAccessor.cs
- AdornerHitTestResult.cs
- ObsoleteAttribute.cs
- SchemaSetCompiler.cs
- Int64KeyFrameCollection.cs
- ListViewGroupConverter.cs
- WindowsHyperlink.cs
- AddressHeaderCollectionElement.cs
- State.cs
- LoginView.cs
- CustomWebEventKey.cs
- ImmComposition.cs
- MessageQueuePermissionEntry.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- LongValidator.cs
- GeometryModel3D.cs
- IFlowDocumentViewer.cs
- TableLayoutRowStyleCollection.cs
- embossbitmapeffect.cs
- XmlSchemaType.cs
- DeviceContexts.cs
- ActivityContext.cs
- Funcletizer.cs
- DNS.cs
- DbgCompiler.cs
- LinkClickEvent.cs
- sqlinternaltransaction.cs
- TemplateBindingExpression.cs
- ViewStateModeByIdAttribute.cs
- WizardStepCollectionEditor.cs
- SmtpTransport.cs
- StringToken.cs
- AffineTransform3D.cs
- OneToOneMappingSerializer.cs
- EntityDataSourceDataSelectionPanel.cs
- _DomainName.cs
- externdll.cs
- HashUtility.cs
- DisplayClaim.cs
- COM2Enum.cs
- SerializationEventsCache.cs
- SafeSecurityHandles.cs
- DataReceivedEventArgs.cs
- EventMappingSettings.cs
- InvariantComparer.cs
- AdapterDictionary.cs
- MessageSmuggler.cs
- ProxyAttribute.cs
- PerfCounters.cs
- XmlDocument.cs
- DataGridViewAdvancedBorderStyle.cs
- GridLength.cs
- BitStack.cs
- DBSchemaTable.cs
- NodeLabelEditEvent.cs
- XmlNodeChangedEventArgs.cs
- TraceData.cs
- PageWrapper.cs
- DetailsViewModeEventArgs.cs
- ProxySimple.cs
- InternalsVisibleToAttribute.cs
- PointCollectionValueSerializer.cs
- TreeChangeInfo.cs
- SmiRequestExecutor.cs
- cache.cs
- UIntPtr.cs
- DependencyObject.cs
- SynchronizationHandlesCodeDomSerializer.cs
- CustomExpressionEventArgs.cs
- AnnotationComponentManager.cs
- ButtonFieldBase.cs
- MatrixStack.cs
- DataGridAddNewRow.cs
- AssemblySettingAttributes.cs
- WebPartEditVerb.cs
- FrameAutomationPeer.cs