Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // // ==--== /*============================================================ ** ** 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
- ObjectDataSourceSelectingEventArgs.cs
- Drawing.cs
- FileFormatException.cs
- RepeaterItem.cs
- ProfilePropertyMetadata.cs
- BinaryFormatter.cs
- BaseDataList.cs
- WebServiceResponseDesigner.cs
- ReadOnlyPropertyMetadata.cs
- StrongNameMembershipCondition.cs
- MultiPartWriter.cs
- StringFormat.cs
- XmlLinkedNode.cs
- CryptoSession.cs
- WebPartDescriptionCollection.cs
- CodeExpressionStatement.cs
- State.cs
- ParallelLoopState.cs
- DocumentApplicationJournalEntry.cs
- UInt16Storage.cs
- CapabilitiesPattern.cs
- RichTextBox.cs
- RealProxy.cs
- WebPartConnectionCollection.cs
- ToolStripItemCollection.cs
- FileUtil.cs
- KnownTypesProvider.cs
- TargetFrameworkAttribute.cs
- RunInstallerAttribute.cs
- CodeCatchClause.cs
- TableRow.cs
- ObjectSerializerFactory.cs
- BuildProviderAppliesToAttribute.cs
- DetailsViewDeletedEventArgs.cs
- basecomparevalidator.cs
- URLIdentityPermission.cs
- ScrollContentPresenter.cs
- AsymmetricSignatureFormatter.cs
- WhiteSpaceTrimStringConverter.cs
- unitconverter.cs
- DataSetMappper.cs
- AmbiguousMatchException.cs
- EncryptedType.cs
- CursorConverter.cs
- ProfessionalColorTable.cs
- SevenBitStream.cs
- UrlRoutingModule.cs
- URLMembershipCondition.cs
- DateTimeSerializationSection.cs
- DPAPIProtectedConfigurationProvider.cs
- _SslStream.cs
- Animatable.cs
- StrongNameMembershipCondition.cs
- ObjectDataSourceFilteringEventArgs.cs
- SplitContainer.cs
- MessageTraceRecord.cs
- CacheVirtualItemsEvent.cs
- XmlCompatibilityReader.cs
- GridViewItemAutomationPeer.cs
- KeyedCollection.cs
- MessageBox.cs
- Parallel.cs
- MemberDomainMap.cs
- InputDevice.cs
- DirectoryLocalQuery.cs
- StringValidator.cs
- DynamicResourceExtensionConverter.cs
- JavaScriptString.cs
- OutputScopeManager.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Vector3dCollection.cs
- ObjectListFieldsPage.cs
- InputMethodStateChangeEventArgs.cs
- JsonEncodingStreamWrapper.cs
- EntityException.cs
- MessageQueuePermissionAttribute.cs
- X509PeerCertificateAuthentication.cs
- KoreanCalendar.cs
- CommandEventArgs.cs
- QueryExpression.cs
- EncryptedKey.cs
- MailMessageEventArgs.cs
- ListViewDeleteEventArgs.cs
- SynchronizationContext.cs
- Vector3DAnimationUsingKeyFrames.cs
- SourceInterpreter.cs
- SqlCommandSet.cs
- DeclarativeCatalogPart.cs
- UserMapPath.cs
- OutOfMemoryException.cs
- ScrollBar.cs
- CqlLexer.cs
- XmlParser.cs
- ValidatingPropertiesEventArgs.cs
- HttpModuleAction.cs
- MutexSecurity.cs
- MSHTMLHostUtil.cs
- GeometryConverter.cs
- WindowInteropHelper.cs
- ConnectorDragDropGlyph.cs