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
- CodeAccessPermission.cs
- TransportSecurityHelpers.cs
- CodeDomConfigurationHandler.cs
- PagePropertiesChangingEventArgs.cs
- Compiler.cs
- StateFinalizationDesigner.cs
- ApplicationDirectoryMembershipCondition.cs
- KerberosTicketHashIdentifierClause.cs
- SqlMetaData.cs
- ToolStripGrip.cs
- DashStyle.cs
- DateTimeFormat.cs
- CodeRegionDirective.cs
- FatalException.cs
- MultiSelectRootGridEntry.cs
- DesignerLoader.cs
- XmlImplementation.cs
- SqlDataRecord.cs
- DPTypeDescriptorContext.cs
- Int16KeyFrameCollection.cs
- AdapterDictionary.cs
- ExeContext.cs
- ComPlusSynchronizationContext.cs
- AppliedDeviceFiltersEditor.cs
- ProfileSettings.cs
- ConfigurationValues.cs
- SingleAnimation.cs
- Brush.cs
- OnOperation.cs
- ComboBoxDesigner.cs
- OrderByQueryOptionExpression.cs
- ColumnWidthChangingEvent.cs
- DriveInfo.cs
- Int32KeyFrameCollection.cs
- DBConnection.cs
- SystemNetworkInterface.cs
- GenericUI.cs
- SetterBase.cs
- AgileSafeNativeMemoryHandle.cs
- DetailsViewAutoFormat.cs
- PagerSettings.cs
- SettingsAttributes.cs
- Identity.cs
- GeometryValueSerializer.cs
- Pair.cs
- RoleGroupCollection.cs
- AdRotatorDesigner.cs
- DecodeHelper.cs
- GeometryModel3D.cs
- SafeViewOfFileHandle.cs
- ASCIIEncoding.cs
- ViewStateModeByIdAttribute.cs
- RequestCacheValidator.cs
- ViewStateException.cs
- TypeGeneratedEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- ProviderUtil.cs
- WebException.cs
- GeneralTransformCollection.cs
- DataTableReader.cs
- MetaModel.cs
- FixedTextPointer.cs
- FreezableOperations.cs
- MatrixStack.cs
- ComboBox.cs
- ChannelServices.cs
- Debug.cs
- InputEventArgs.cs
- ExceptionUtil.cs
- RegexCaptureCollection.cs
- DataSourceXmlClassAttribute.cs
- RenderOptions.cs
- ConsoleTraceListener.cs
- ScriptManagerProxy.cs
- MetadataItem_Static.cs
- ListenerConfig.cs
- SqlExpander.cs
- BackgroundFormatInfo.cs
- DeviceSpecificDesigner.cs
- PassportPrincipal.cs
- Int16KeyFrameCollection.cs
- EntityConnectionStringBuilderItem.cs
- GlyphRunDrawing.cs
- ValueExpressions.cs
- BitmapMetadataBlob.cs
- LinqToSqlWrapper.cs
- TextServicesHost.cs
- ConnectionOrientedTransportManager.cs
- UpdatePanelControlTrigger.cs
- HttpListenerTimeoutManager.cs
- TCPListener.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- cookie.cs
- DocumentPaginator.cs
- SqlEnums.cs
- DrawingAttributeSerializer.cs
- ProtocolElementCollection.cs
- HtmlGenericControl.cs
- XmlSequenceWriter.cs
- ImmutablePropertyDescriptorGridEntry.cs