Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ObsoleteAttribute.cs / 1305376 / 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. // // ==--== /*============================================================ ** ** 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItemCollection.cs
- HttpContextWrapper.cs
- SystemBrushes.cs
- KnownIds.cs
- Pen.cs
- webbrowsersite.cs
- ToolStripLabel.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ErrorHandler.cs
- SafeRightsManagementPubHandle.cs
- BoundColumn.cs
- DialogWindow.cs
- ElementMarkupObject.cs
- ISessionStateStore.cs
- ToolStripTextBox.cs
- Substitution.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- HostProtectionPermission.cs
- RestClientProxyHandler.cs
- ReflectTypeDescriptionProvider.cs
- BamlLocalizableResource.cs
- BezierSegment.cs
- ApplicationActivator.cs
- MultiViewDesigner.cs
- Bidi.cs
- SubqueryRules.cs
- NetworkInformationException.cs
- AnnouncementEndpointElement.cs
- DNS.cs
- BypassElement.cs
- IntegerFacetDescriptionElement.cs
- UserMapPath.cs
- GenericUI.cs
- GridViewEditEventArgs.cs
- AgileSafeNativeMemoryHandle.cs
- TimeSpanSecondsConverter.cs
- EditorZone.cs
- ManagedFilter.cs
- Interlocked.cs
- XmlAttributeCache.cs
- HttpFileCollection.cs
- RightsManagementEncryptedStream.cs
- ManualWorkflowSchedulerService.cs
- ContentPosition.cs
- DynamicValueConverter.cs
- EventTask.cs
- BlurBitmapEffect.cs
- XmlLanguage.cs
- WindowsComboBox.cs
- ServiceModelSecurityTokenTypes.cs
- BehaviorDragDropEventArgs.cs
- Executor.cs
- NonParentingControl.cs
- WinHttpWebProxyFinder.cs
- DiagnosticsConfiguration.cs
- IPPacketInformation.cs
- coordinatorscratchpad.cs
- WriteTimeStream.cs
- ScrollEventArgs.cs
- XPathDocument.cs
- ExceptionRoutedEventArgs.cs
- _LoggingObject.cs
- CollectionChangedEventManager.cs
- TypeLoadException.cs
- TearOffProxy.cs
- PreviewControlDesigner.cs
- ObjectListDesigner.cs
- MasterPageCodeDomTreeGenerator.cs
- PerfService.cs
- EventQueueState.cs
- Configuration.cs
- SettingsProviderCollection.cs
- ProxyWebPart.cs
- JoinTreeNode.cs
- SqlConnectionFactory.cs
- ImageSource.cs
- XmlEntityReference.cs
- Matrix.cs
- TransactionOptions.cs
- SQLBinaryStorage.cs
- XmlQualifiedNameTest.cs
- SQLConvert.cs
- AtomEntry.cs
- BitArray.cs
- Transform.cs
- SkewTransform.cs
- RequestTimeoutManager.cs
- UrlAuthFailedErrorFormatter.cs
- PartitionedStream.cs
- Form.cs
- ProfilePropertyNameValidator.cs
- ServicePointManagerElement.cs
- MailDefinition.cs
- XmlSchemaNotation.cs
- BufferedGraphics.cs
- Visitor.cs
- BlockCollection.cs
- BinHexDecoder.cs
- BoundField.cs
- UInt16.cs