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
- _Semaphore.cs
- RequestCache.cs
- Rect3DConverter.cs
- UIntPtr.cs
- Point.cs
- AsyncCallback.cs
- DPAPIProtectedConfigurationProvider.cs
- GifBitmapEncoder.cs
- DrawListViewSubItemEventArgs.cs
- ControlAdapter.cs
- RemoveStoryboard.cs
- SessionPageStatePersister.cs
- ConnectionStringsExpressionBuilder.cs
- FileIOPermission.cs
- BrowserCapabilitiesCompiler.cs
- TemplateParser.cs
- StyleXamlTreeBuilder.cs
- XpsFilter.cs
- DifferencingCollection.cs
- FontDifferentiator.cs
- SafeHandles.cs
- Accessible.cs
- SafeFileHandle.cs
- Point4DValueSerializer.cs
- BookmarkManager.cs
- XmlAttributeOverrides.cs
- OleDbReferenceCollection.cs
- EntityProviderServices.cs
- TabPanel.cs
- HtmlInputCheckBox.cs
- DbConnectionPoolGroupProviderInfo.cs
- FileLogRecord.cs
- Pointer.cs
- UpDownEvent.cs
- SafeBitVector32.cs
- WebRequest.cs
- CodeDOMUtility.cs
- SystemIcons.cs
- DrawingServices.cs
- ListBindableAttribute.cs
- ProfessionalColorTable.cs
- Vector.cs
- IPipelineRuntime.cs
- DelegateBodyWriter.cs
- HttpStreamXmlDictionaryReader.cs
- TransformerTypeCollection.cs
- AspNetHostingPermission.cs
- PeerApplicationLaunchInfo.cs
- BorderGapMaskConverter.cs
- TCEAdapterGenerator.cs
- GlyphRun.cs
- TrackingServices.cs
- SigningProgress.cs
- NativeMethods.cs
- EncryptedXml.cs
- BehaviorDragDropEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- TextFormatter.cs
- PopupRoot.cs
- PersonalizationAdministration.cs
- ThreadAbortException.cs
- IImplicitResourceProvider.cs
- _Win32.cs
- MappingItemCollection.cs
- TableCellCollection.cs
- ExceptionRoutedEventArgs.cs
- StandardCommands.cs
- InternalConfigConfigurationFactory.cs
- DataControlCommands.cs
- OracleRowUpdatedEventArgs.cs
- X509AudioLogo.cs
- NumericExpr.cs
- SchemaCollectionCompiler.cs
- BitmapEffectGroup.cs
- ActiveXSite.cs
- DataGridViewRowsRemovedEventArgs.cs
- SharedPerformanceCounter.cs
- WebPartEditVerb.cs
- XsdValidatingReader.cs
- RoleService.cs
- SelectionEditingBehavior.cs
- SqlCacheDependencySection.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolboxSnapDragDropEventArgs.cs
- OleDbConnectionInternal.cs
- ObjectListDataBindEventArgs.cs
- StructuredProperty.cs
- oledbconnectionstring.cs
- LinearQuaternionKeyFrame.cs
- SqlDataReader.cs
- Number.cs
- mongolianshape.cs
- ExecutionEngineException.cs
- ContentPosition.cs
- XmlNamespaceMappingCollection.cs
- DataSourceCacheDurationConverter.cs
- ZoomingMessageFilter.cs
- ListBindingHelper.cs
- DataControlReferenceCollection.cs
- MsmqMessageProperty.cs