Code:
/ DotNET / DotNET / 8.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
- Permission.cs
- SkinBuilder.cs
- XmlDocument.cs
- FixedSOMPageConstructor.cs
- InputReport.cs
- CompilationUnit.cs
- SRDisplayNameAttribute.cs
- DataContractSerializerMessageContractImporter.cs
- X509ServiceCertificateAuthenticationElement.cs
- SevenBitStream.cs
- XmlSchemaExporter.cs
- CodeNamespaceCollection.cs
- WebConfigurationManager.cs
- XDRSchema.cs
- URLIdentityPermission.cs
- MailMessageEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- HijriCalendar.cs
- __ComObject.cs
- ConnectionManagementElementCollection.cs
- ServiceOperationUIEditor.cs
- ByteConverter.cs
- SurrogateEncoder.cs
- ProfileSettingsCollection.cs
- SimpleHandlerFactory.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CustomAttributeSerializer.cs
- SinglePhaseEnlistment.cs
- CompareInfo.cs
- TextBoxView.cs
- ImageMetadata.cs
- ProcessHostServerConfig.cs
- MediaSystem.cs
- WindowShowOrOpenTracker.cs
- DWriteFactory.cs
- GlobalizationAssembly.cs
- LOSFormatter.cs
- DragSelectionMessageFilter.cs
- FlowchartDesigner.Helpers.cs
- TargetControlTypeAttribute.cs
- PassportIdentity.cs
- SafeHandles.cs
- SafeFindHandle.cs
- DiagnosticsConfigurationHandler.cs
- ColorInterpolationModeValidation.cs
- EncoderParameter.cs
- HtmlTableRowCollection.cs
- NullableBoolConverter.cs
- ProviderMetadataCachedInformation.cs
- HttpConfigurationSystem.cs
- PointCollection.cs
- Rect3D.cs
- AxHostDesigner.cs
- SqlDataReaderSmi.cs
- Decoder.cs
- SqlErrorCollection.cs
- AnimationTimeline.cs
- BulletedList.cs
- NativeMethods.cs
- StateElement.cs
- WebPartEventArgs.cs
- SoapClientMessage.cs
- PngBitmapEncoder.cs
- Visual.cs
- DurableInstance.cs
- Choices.cs
- PassportAuthenticationEventArgs.cs
- CacheAxisQuery.cs
- ToolStripAdornerWindowService.cs
- SatelliteContractVersionAttribute.cs
- SamlEvidence.cs
- RoleGroupCollection.cs
- BufferCache.cs
- Bits.cs
- DataServiceHostFactory.cs
- BaseTransportHeaders.cs
- ArgIterator.cs
- TextureBrush.cs
- IBuiltInEvidence.cs
- SafeNativeMethods.cs
- AutoGeneratedField.cs
- PlaceHolder.cs
- InfoCardProofToken.cs
- ListenerConfig.cs
- UpdateRecord.cs
- ToolStripPanelRow.cs
- IsolatedStoragePermission.cs
- UInt32Converter.cs
- TabletDeviceInfo.cs
- CompilerLocalReference.cs
- TdsParserStateObject.cs
- MultilineStringConverter.cs
- Logging.cs
- SamlAdvice.cs
- InheritanceContextHelper.cs
- HostingEnvironment.cs
- SelectionService.cs
- BitmapMetadataBlob.cs
- BasicCellRelation.cs
- CompatibleComparer.cs