Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeAttributeDeclaration.cs
- TextControlDesigner.cs
- StandardBindingCollectionElement.cs
- XamlSerializerUtil.cs
- UnsafeNativeMethods.cs
- OutKeywords.cs
- DictionaryGlobals.cs
- AssociationTypeEmitter.cs
- ScrollBar.cs
- DeploymentExceptionMapper.cs
- Point.cs
- OleDbPropertySetGuid.cs
- ECDsa.cs
- CloseCryptoHandleRequest.cs
- DataServiceClientException.cs
- ConfigXmlAttribute.cs
- CompilationRelaxations.cs
- CodeDefaultValueExpression.cs
- SecurityKeyEntropyMode.cs
- MemoryMappedViewAccessor.cs
- _BufferOffsetSize.cs
- PickBranchDesigner.xaml.cs
- FixedSOMPageElement.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- WindowsSecurityTokenAuthenticator.cs
- ViewManager.cs
- Screen.cs
- AspNetCacheProfileAttribute.cs
- VisualBasicSettingsHandler.cs
- Component.cs
- PropagatorResult.cs
- AliasedExpr.cs
- XmlNodeList.cs
- MessageFault.cs
- Random.cs
- SafeFindHandle.cs
- XmlDocumentType.cs
- input.cs
- BindingSource.cs
- TimelineGroup.cs
- ManagementNamedValueCollection.cs
- MappingItemCollection.cs
- HelpPage.cs
- BinaryEditor.cs
- FSWPathEditor.cs
- DefaultPropertyAttribute.cs
- WindowsRichEdit.cs
- SimplePropertyEntry.cs
- MobileComponentEditorPage.cs
- SerializationObjectManager.cs
- XmlSchemaSimpleTypeRestriction.cs
- ContextBase.cs
- TextWriterTraceListener.cs
- TimeSpanStorage.cs
- RawUIStateInputReport.cs
- RenderTargetBitmap.cs
- _TransmitFileOverlappedAsyncResult.cs
- ToolConsole.cs
- ConfigXmlCDataSection.cs
- InteropAutomationProvider.cs
- DataGridPagerStyle.cs
- DataContractSerializerOperationGenerator.cs
- TrustManagerMoreInformation.cs
- DesignerActionUI.cs
- SHA384.cs
- InputScopeAttribute.cs
- VariableQuery.cs
- DefaultPrintController.cs
- ThreadInterruptedException.cs
- StreamInfo.cs
- LinearQuaternionKeyFrame.cs
- XPathAxisIterator.cs
- Statements.cs
- StartUpEventArgs.cs
- HandledEventArgs.cs
- SafeNativeMethods.cs
- HttpChannelFactory.cs
- SourceCollection.cs
- FaultConverter.cs
- Pair.cs
- XmlQueryOutput.cs
- MultipleViewProviderWrapper.cs
- TypeUsage.cs
- TextServicesContext.cs
- MetadataItemEmitter.cs
- BamlTreeMap.cs
- ReliableDuplexSessionChannel.cs
- WebMessageEncoderFactory.cs
- DirtyTextRange.cs
- CodeArgumentReferenceExpression.cs
- SafeEventLogWriteHandle.cs
- lengthconverter.cs
- TextContainer.cs
- InternalPermissions.cs
- KeyMatchBuilder.cs
- MobileListItem.cs
- TabItem.cs
- AccessDataSourceWizardForm.cs
- Maps.cs
- ConstraintConverter.cs