Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AnnotationStore.cs
- DateTime.cs
- OAVariantLib.cs
- ButtonFlatAdapter.cs
- Adorner.cs
- StringOutput.cs
- UriTemplateTrieNode.cs
- SamlAttribute.cs
- PromptEventArgs.cs
- UniqueSet.cs
- InfoCardSymmetricAlgorithm.cs
- HtmlImage.cs
- SecurityChannelFactory.cs
- CacheVirtualItemsEvent.cs
- TextBreakpoint.cs
- DeclarativeCatalogPart.cs
- BypassElementCollection.cs
- ImageMap.cs
- ContextStaticAttribute.cs
- ChildTable.cs
- ColorMatrix.cs
- StreamWithDictionary.cs
- XsdDateTime.cs
- FloatMinMaxAggregationOperator.cs
- XmlResolver.cs
- BrowserTree.cs
- PasswordBoxAutomationPeer.cs
- DataGridViewRowsRemovedEventArgs.cs
- StringSource.cs
- Stroke.cs
- MimeObjectFactory.cs
- SecurityDescriptor.cs
- ShadowGlyph.cs
- RuntimeHandles.cs
- ProgressBar.cs
- Vector3DCollection.cs
- InvariantComparer.cs
- ImageIndexConverter.cs
- ContentDesigner.cs
- QueryCursorEventArgs.cs
- ViewKeyConstraint.cs
- BitmapCodecInfo.cs
- hresults.cs
- OdbcReferenceCollection.cs
- RegexStringValidatorAttribute.cs
- DataObjectSettingDataEventArgs.cs
- DbExpressionVisitor_TResultType.cs
- x509utils.cs
- NamespaceList.cs
- LOSFormatter.cs
- GeneralTransform2DTo3D.cs
- ModifierKeysValueSerializer.cs
- TextEmbeddedObject.cs
- ToolStripDropDownItem.cs
- MdiWindowListStrip.cs
- FormsAuthenticationEventArgs.cs
- PriorityBindingExpression.cs
- Rect3DValueSerializer.cs
- CompositeCollection.cs
- PathGeometry.cs
- ButtonStandardAdapter.cs
- CqlGenerator.cs
- RoutedPropertyChangedEventArgs.cs
- SqlColumnizer.cs
- wgx_commands.cs
- DataGridViewCellMouseEventArgs.cs
- PrintPageEvent.cs
- ObservableCollection.cs
- RuleSetDialog.cs
- TokenBasedSet.cs
- WebZone.cs
- FormatConvertedBitmap.cs
- _BaseOverlappedAsyncResult.cs
- ValidationException.cs
- SimpleHandlerFactory.cs
- NamespaceDisplay.xaml.cs
- URLMembershipCondition.cs
- BasicBrowserDialog.cs
- PcmConverter.cs
- PropertyInformation.cs
- ExpandCollapsePattern.cs
- DataStreamFromComStream.cs
- QilFactory.cs
- VersionedStreamOwner.cs
- TextPatternIdentifiers.cs
- IssuedTokenClientBehaviorsElement.cs
- SqlWriter.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ToolStripCustomTypeDescriptor.cs
- XmlCompatibilityReader.cs
- CssStyleCollection.cs
- LoadItemsEventArgs.cs
- Identity.cs
- BindingMemberInfo.cs
- PauseStoryboard.cs
- HttpUnhandledOperationInvoker.cs
- DbSource.cs
- RoutedEvent.cs
- GenericWebPart.cs
- QueryGenerator.cs