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
- ButtonField.cs
- fixedPageContentExtractor.cs
- ActivityStatusChangeEventArgs.cs
- RequestCache.cs
- NonBatchDirectoryCompiler.cs
- RuleConditionDialog.cs
- ButtonColumn.cs
- Tuple.cs
- DiscoveryDocumentSerializer.cs
- ApplicationInterop.cs
- TimeZone.cs
- ChannelParameterCollection.cs
- BulletDecorator.cs
- BookmarkWorkItem.cs
- TextOptionsInternal.cs
- DependencyObjectPropertyDescriptor.cs
- WorkflowLayouts.cs
- OrderedDictionary.cs
- ObjectView.cs
- DebugController.cs
- ManagementObject.cs
- Function.cs
- OleDbPropertySetGuid.cs
- ValidationRuleCollection.cs
- TableLayout.cs
- WebSysDescriptionAttribute.cs
- AsymmetricAlgorithm.cs
- OutputCache.cs
- ResXDataNode.cs
- MD5Cng.cs
- WindowsSysHeader.cs
- XmlLinkedNode.cs
- DataSourceGeneratorException.cs
- UidManager.cs
- Color.cs
- FixedElement.cs
- DataBinding.cs
- CodeRegionDirective.cs
- ComAwareEventInfo.cs
- ConvertTextFrag.cs
- ObsoleteAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- CompilerResults.cs
- ExpressionBuilderCollection.cs
- RuleProcessor.cs
- DependencyObjectProvider.cs
- SafeArrayRankMismatchException.cs
- Geometry.cs
- SiteOfOriginPart.cs
- SafeProcessHandle.cs
- TypedOperationInfo.cs
- NavigatingCancelEventArgs.cs
- SeverityFilter.cs
- ISAPIWorkerRequest.cs
- DynamicEntity.cs
- DataSourceControlBuilder.cs
- filewebresponse.cs
- HwndProxyElementProvider.cs
- AuthenticationModuleElementCollection.cs
- ProfileBuildProvider.cs
- AppDomainShutdownMonitor.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PingReply.cs
- XmlSubtreeReader.cs
- TransactionsSectionGroup.cs
- XmlSchemaComplexContent.cs
- GridEntryCollection.cs
- CngProperty.cs
- NullableLongSumAggregationOperator.cs
- DataGridTableCollection.cs
- ZipIOBlockManager.cs
- PlainXmlSerializer.cs
- BamlCollectionHolder.cs
- ColumnMapCopier.cs
- TransformedBitmap.cs
- KoreanLunisolarCalendar.cs
- safesecurityhelperavalon.cs
- PrimitiveSchema.cs
- RepeaterCommandEventArgs.cs
- RegexCompilationInfo.cs
- QilName.cs
- TabPanel.cs
- SocketStream.cs
- WebSysDefaultValueAttribute.cs
- NativeCppClassAttribute.cs
- serverconfig.cs
- coordinatorscratchpad.cs
- Button.cs
- CompilationLock.cs
- DataTableMappingCollection.cs
- ConfigPathUtility.cs
- AddInDeploymentState.cs
- MinMaxParagraphWidth.cs
- Animatable.cs
- InputScopeAttribute.cs
- FlowDocumentView.cs
- OleDbParameterCollection.cs
- MappingException.cs
- EncodingTable.cs
- CompilerInfo.cs