Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RSAProtectedConfigurationProvider.cs
- XPathNavigatorKeyComparer.cs
- ModelTreeEnumerator.cs
- ProviderManager.cs
- DataGridViewCellCancelEventArgs.cs
- WaitHandle.cs
- SystemInformation.cs
- PropertyPath.cs
- ToolboxComponentsCreatingEventArgs.cs
- ConfigLoader.cs
- storepermissionattribute.cs
- HealthMonitoringSectionHelper.cs
- LinqDataSourceUpdateEventArgs.cs
- RijndaelManaged.cs
- ITreeGenerator.cs
- TableLayoutCellPaintEventArgs.cs
- CommonProperties.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TextFormatter.cs
- SecurityContextCookieSerializer.cs
- StateFinalizationDesigner.cs
- InputScopeNameConverter.cs
- WebPartMinimizeVerb.cs
- SystemDropShadowChrome.cs
- ColorKeyFrameCollection.cs
- AdapterUtil.cs
- LayoutTableCell.cs
- XsdDuration.cs
- HttpCapabilitiesBase.cs
- TextServicesHost.cs
- ParameterToken.cs
- HttpModuleAction.cs
- RTLAwareMessageBox.cs
- QueryResults.cs
- FreezableOperations.cs
- DBParameter.cs
- EvidenceBase.cs
- CompareValidator.cs
- CryptoApi.cs
- SelectionRangeConverter.cs
- CultureTableRecord.cs
- DataGridCommandEventArgs.cs
- SqlLiftIndependentRowExpressions.cs
- PropertyItemInternal.cs
- ServiceDescription.cs
- QilTargetType.cs
- DropSource.cs
- Nullable.cs
- TemplateBamlTreeBuilder.cs
- DragDeltaEventArgs.cs
- DtdParser.cs
- EntityProxyFactory.cs
- DrawTreeNodeEventArgs.cs
- WindowCollection.cs
- TransactionException.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- UnknownBitmapEncoder.cs
- ContainerVisual.cs
- URLAttribute.cs
- MappingModelBuildProvider.cs
- BinaryFormatter.cs
- AudioException.cs
- RequestUriProcessor.cs
- TemplateControlBuildProvider.cs
- Debug.cs
- StylusEditingBehavior.cs
- WindowsFormsHostAutomationPeer.cs
- ModuleBuilder.cs
- RawStylusInputReport.cs
- PeerDuplexChannel.cs
- VisualTreeHelper.cs
- XmlSchemaObject.cs
- UInt64Converter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- EntityDataSourceQueryBuilder.cs
- InvalidEnumArgumentException.cs
- HuffmanTree.cs
- RankException.cs
- TextHidden.cs
- ServiceManager.cs
- RequestCacheValidator.cs
- ThreadStaticAttribute.cs
- XmlSchemaComplexType.cs
- CompositionAdorner.cs
- smtppermission.cs
- SqlColumnizer.cs
- SafePEFileHandle.cs
- WinInet.cs
- DataSetMappper.cs
- WorkflowOperationAsyncResult.cs
- DrawingImage.cs
- CharAnimationBase.cs
- CaseInsensitiveComparer.cs
- DSGeneratorProblem.cs
- ListParaClient.cs
- BinaryObjectWriter.cs
- Resources.Designer.cs
- AdapterUtil.cs
- TrustManagerPromptUI.cs
- AmbientLight.cs