Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / ObsoleteAttribute.cs / 1 / ObsoleteAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: ObsoleteAttribute ** ** ** Purpose: Attribute for functions, etc that will be removed. ** ** ===========================================================*/ namespace System { using System; using System.Runtime.Remoting; // This attribute is attached to members that are not to be used any longer. // Message is some human readable explanation of what to use // Error indicates if the compiler should treat usage of such a method as an // error. (this would be used if the actual implementation of the obsolete // method's implementation had changed). // [Serializable(), AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Constructor | AttributeTargets.Method| AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Delegate , Inherited = false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class ObsoleteAttribute : Attribute { private String _message; private bool _error; public ObsoleteAttribute () { _message = null; _error = false; } public ObsoleteAttribute (String message) { _message = message; _error = false; } public ObsoleteAttribute (String message, bool error) { _message = message; _error = error; } public String Message { get {return _message;} } public bool IsError{ get {return _error;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PathNode.cs
- AliasGenerator.cs
- TableItemPatternIdentifiers.cs
- TypeDescriptor.cs
- AttachedPropertyDescriptor.cs
- PlaceHolder.cs
- ExportOptions.cs
- nulltextcontainer.cs
- PlaceHolder.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- Label.cs
- ButtonBaseAutomationPeer.cs
- ResourcePermissionBase.cs
- ContentPropertyAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TextClipboardData.cs
- Rights.cs
- ItemMap.cs
- ToolStripSplitButton.cs
- CodeGen.cs
- FunctionNode.cs
- IPAddress.cs
- _TransmitFileOverlappedAsyncResult.cs
- AlgoModule.cs
- BindableTemplateBuilder.cs
- DbProviderConfigurationHandler.cs
- StorageModelBuildProvider.cs
- DataGridViewCellCollection.cs
- DataRecordInternal.cs
- SQLConvert.cs
- XXXOnTypeBuilderInstantiation.cs
- ColorComboBox.cs
- Encoding.cs
- DataContractSerializerElement.cs
- TextSchema.cs
- BypassElementCollection.cs
- Serializer.cs
- DataServiceHost.cs
- RightsManagementInformation.cs
- RectangleF.cs
- DifferencingCollection.cs
- AudioSignalProblemOccurredEventArgs.cs
- EntityRecordInfo.cs
- NetworkStream.cs
- QueryReaderSettings.cs
- XmlNode.cs
- MessagePropertyFilter.cs
- Expression.cs
- IntSecurity.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- CacheEntry.cs
- XmlValidatingReader.cs
- _NTAuthentication.cs
- NativeMethods.cs
- HttpListenerContext.cs
- TreeWalkHelper.cs
- XNameTypeConverter.cs
- AxHostDesigner.cs
- EncoderReplacementFallback.cs
- ObjectContext.cs
- ListViewCommandEventArgs.cs
- EFDataModelProvider.cs
- ThreadExceptionDialog.cs
- ValidationRuleCollection.cs
- BoundConstants.cs
- StrongNamePublicKeyBlob.cs
- ToolTipAutomationPeer.cs
- ConsoleCancelEventArgs.cs
- VBIdentifierNameEditor.cs
- XPathNodeInfoAtom.cs
- TableLayoutPanelCellPosition.cs
- KnownBoxes.cs
- ProjectedSlot.cs
- DataSourceViewSchemaConverter.cs
- CodeAttachEventStatement.cs
- Accessible.cs
- Contracts.cs
- COM2FontConverter.cs
- ObjectListGeneralPage.cs
- RenderOptions.cs
- CustomAttributeSerializer.cs
- CodeLabeledStatement.cs
- DataFormats.cs
- ToolStripSeparator.cs
- ObjectQuery.cs
- OracleNumber.cs
- PropertyMapper.cs
- Image.cs
- SingleSelectRootGridEntry.cs
- ComponentManagerBroker.cs
- EditingCommands.cs
- SrgsElementList.cs
- SafeHandles.cs
- AuthorizationSection.cs
- WebServiceBindingAttribute.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- MessageSecurityException.cs
- RequestCacheManager.cs
- TimeoutValidationAttribute.cs
- RadioButtonAutomationPeer.cs