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
- ObjectManager.cs
- IDispatchConstantAttribute.cs
- JsonWriter.cs
- SafeHandles.cs
- FlowLayout.cs
- BamlResourceContent.cs
- HttpSessionStateWrapper.cs
- TdsParameterSetter.cs
- PrivilegeNotHeldException.cs
- SessionStateSection.cs
- NetworkInterface.cs
- DataShape.cs
- NoResizeSelectionBorderGlyph.cs
- XmlDataLoader.cs
- OdbcDataReader.cs
- PropertyTab.cs
- XmlDataSource.cs
- ResXDataNode.cs
- FileDialogCustomPlacesCollection.cs
- Group.cs
- Renderer.cs
- BaseTreeIterator.cs
- DataListItemCollection.cs
- GridSplitter.cs
- OptimizerPatterns.cs
- CodeThrowExceptionStatement.cs
- EventManager.cs
- HttpFileCollection.cs
- QualificationDataAttribute.cs
- DataViewSetting.cs
- DataBindingExpressionBuilder.cs
- CriticalHandle.cs
- SmtpFailedRecipientsException.cs
- DefaultEventAttribute.cs
- DateTimeEditor.cs
- TableSectionStyle.cs
- MessageSmuggler.cs
- Win32KeyboardDevice.cs
- EventSourceCreationData.cs
- SQLGuidStorage.cs
- PipelineComponent.cs
- SpAudioStreamWrapper.cs
- ButtonStandardAdapter.cs
- QueryMatcher.cs
- ProvidersHelper.cs
- LocatorManager.cs
- Pair.cs
- TextDecorationLocationValidation.cs
- Models.cs
- httpstaticobjectscollection.cs
- ScrollItemPatternIdentifiers.cs
- TreeNodeStyleCollection.cs
- EnvironmentPermission.cs
- StylusPlugin.cs
- PropertyGeneratedEventArgs.cs
- XmlSerializerNamespaces.cs
- NodeLabelEditEvent.cs
- CompilationSection.cs
- ObjectConverter.cs
- DateTimeOffset.cs
- Speller.cs
- DesignerTransactionCloseEvent.cs
- FreezableDefaultValueFactory.cs
- HttpRuntimeSection.cs
- InputGestureCollection.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- BuildProvidersCompiler.cs
- BevelBitmapEffect.cs
- XmlAtomicValue.cs
- EntityDataSourceSelectingEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- StatusBarDrawItemEvent.cs
- XmlTextReaderImpl.cs
- HtmlWindow.cs
- SafeNativeMethods.cs
- MemoryPressure.cs
- ExcludePathInfo.cs
- SystemSounds.cs
- BStrWrapper.cs
- SmiRecordBuffer.cs
- Internal.cs
- ObfuscationAttribute.cs
- Buffer.cs
- ImageButton.cs
- EmptyQuery.cs
- TraceSection.cs
- Image.cs
- TableHeaderCell.cs
- BatchParser.cs
- DataGridViewRowsAddedEventArgs.cs
- Attributes.cs
- SmiContext.cs
- OverloadGroupAttribute.cs
- DSACryptoServiceProvider.cs
- OverloadGroupAttribute.cs
- QuaternionRotation3D.cs
- DataSourceDescriptorCollection.cs
- QilStrConcat.cs
- SystemThemeKey.cs
- AttributeSetAction.cs