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
- ClrProviderManifest.cs
- RuntimeHelpers.cs
- Registry.cs
- ElementUtil.cs
- CatalogPartCollection.cs
- ControlPager.cs
- WebSysDefaultValueAttribute.cs
- DateTimeOffset.cs
- ListGeneralPage.cs
- remotingproxy.cs
- DataGridViewUtilities.cs
- FastEncoderWindow.cs
- TopClause.cs
- DesignerActionPropertyItem.cs
- XPathNavigator.cs
- XMLSyntaxException.cs
- DiscardableAttribute.cs
- SHA512CryptoServiceProvider.cs
- TdsParameterSetter.cs
- HandlerFactoryWrapper.cs
- Grant.cs
- KeyPressEvent.cs
- infer.cs
- DataTablePropertyDescriptor.cs
- ViewManager.cs
- ObjectHandle.cs
- HandlerBase.cs
- VectorCollectionValueSerializer.cs
- PublisherMembershipCondition.cs
- EventLogPermissionAttribute.cs
- Visual.cs
- QueryExpr.cs
- SrgsOneOf.cs
- MultitargetUtil.cs
- SerializationSectionGroup.cs
- DataGridViewSelectedCellCollection.cs
- PropertyMetadata.cs
- TreeIterators.cs
- Transform.cs
- XPathSelectionIterator.cs
- SqlCacheDependencySection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- XmlAnyElementAttribute.cs
- StylusDownEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- HttpServerUtilityBase.cs
- FormsAuthenticationCredentials.cs
- ExpressionCopier.cs
- WSSecurityJan2004.cs
- AssemblyName.cs
- Event.cs
- PlatformNotSupportedException.cs
- PhysicalFontFamily.cs
- DataGridViewDataErrorEventArgs.cs
- EntitySetDataBindingList.cs
- FormatException.cs
- NodeLabelEditEvent.cs
- dtdvalidator.cs
- XmlQuerySequence.cs
- EncoderFallback.cs
- XmlnsCache.cs
- AtomServiceDocumentSerializer.cs
- ColumnBinding.cs
- IDReferencePropertyAttribute.cs
- DerivedKeySecurityToken.cs
- DictionaryTraceRecord.cs
- NavigationCommands.cs
- DbConnectionStringBuilder.cs
- HelpProvider.cs
- ISAPIApplicationHost.cs
- DbSourceCommand.cs
- FormatSelectingMessageInspector.cs
- SizeAnimationClockResource.cs
- AuthorizationRule.cs
- WebHostUnsafeNativeMethods.cs
- IdentityReference.cs
- AuthenticationSection.cs
- SqlNotificationRequest.cs
- ObjectResult.cs
- DeflateEmulationStream.cs
- NativeCppClassAttribute.cs
- FrameworkElementFactory.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- GenericsInstances.cs
- Native.cs
- BrushValueSerializer.cs
- SqlDataSourceSelectingEventArgs.cs
- Options.cs
- UDPClient.cs
- precedingsibling.cs
- RefExpr.cs
- FormsAuthenticationCredentials.cs
- Wildcard.cs
- ConnectionStringsExpressionEditor.cs
- MD5.cs
- ScrollViewerAutomationPeer.cs
- SafeCryptoHandles.cs
- StrongNameUtility.cs
- RegisteredDisposeScript.cs
- SegmentInfo.cs