Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClassData.cs
- AttributeAction.cs
- __ConsoleStream.cs
- DataGridViewComboBoxCell.cs
- HttpListenerResponse.cs
- FixedPageStructure.cs
- DataGridViewTextBoxCell.cs
- AsyncStreamReader.cs
- MarkerProperties.cs
- MediaPlayer.cs
- BaseDataList.cs
- WeakReferenceKey.cs
- MonthCalendar.cs
- Directory.cs
- WinInetCache.cs
- FactoryRecord.cs
- InfiniteIntConverter.cs
- GlyphShapingProperties.cs
- PieceNameHelper.cs
- ExtensionSimplifierMarkupObject.cs
- WebPartMovingEventArgs.cs
- Dictionary.cs
- ChtmlTextWriter.cs
- Sql8ExpressionRewriter.cs
- BadImageFormatException.cs
- StringWriter.cs
- XmlMembersMapping.cs
- BaseInfoTable.cs
- ResourcePool.cs
- AsmxEndpointPickerExtension.cs
- RowToParametersTransformer.cs
- Types.cs
- RenderContext.cs
- HeaderedItemsControl.cs
- DelegatingTypeDescriptionProvider.cs
- SqlXmlStorage.cs
- RegexGroupCollection.cs
- BufferedResponseStream.cs
- ActiveXHelper.cs
- WaitHandle.cs
- HostSecurityManager.cs
- TypeResolvingOptionsAttribute.cs
- ServiceNameElementCollection.cs
- MinimizableAttributeTypeConverter.cs
- GPRECT.cs
- WebPartConnectionCollection.cs
- PageContent.cs
- XmlnsDictionary.cs
- MessageProperties.cs
- UIPropertyMetadata.cs
- WebFormDesignerActionService.cs
- DataRelationCollection.cs
- GorillaCodec.cs
- SqlParameter.cs
- TypeSystemProvider.cs
- RawStylusInputReport.cs
- TextProperties.cs
- ToolStripDropTargetManager.cs
- XmlSerializableReader.cs
- ReferenceCountedObject.cs
- AspProxy.cs
- ToolCreatedEventArgs.cs
- InternalMappingException.cs
- RewritingValidator.cs
- PeerTransportListenAddressValidator.cs
- NegationPusher.cs
- WeakReadOnlyCollection.cs
- EventsTab.cs
- CapabilitiesState.cs
- TcpTransportManager.cs
- ObjectAnimationUsingKeyFrames.cs
- QueryableFilterUserControl.cs
- EntityDataSourceDesignerHelper.cs
- ConfigXmlReader.cs
- KeyPressEvent.cs
- SelectedPathEditor.cs
- AssemblyAttributes.cs
- WebPartEventArgs.cs
- BinaryParser.cs
- ExpandCollapsePatternIdentifiers.cs
- ClientSettingsProvider.cs
- ComponentManagerBroker.cs
- BindingBase.cs
- GeometryModel3D.cs
- XmlReflectionImporter.cs
- Debug.cs
- WebControlToolBoxItem.cs
- FieldMetadata.cs
- DocumentApplication.cs
- MouseButton.cs
- OleDbCommandBuilder.cs
- StrongNameMembershipCondition.cs
- SettingsBindableAttribute.cs
- HttpCookieCollection.cs
- StrongNameKeyPair.cs
- PathSegment.cs
- WebPartDisplayMode.cs
- WsdlEndpointConversionContext.cs
- PopupEventArgs.cs
- XmlSchemaExporter.cs