Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootBrowserWindowAutomationPeer.cs
- TreeView.cs
- ArrangedElementCollection.cs
- WindowsStreamSecurityUpgradeProvider.cs
- RijndaelManaged.cs
- PolicyValidationException.cs
- TypeDescriptor.cs
- ObjectQuery.cs
- compensatingcollection.cs
- WebEvents.cs
- recordstate.cs
- FacetDescriptionElement.cs
- TerminateDesigner.cs
- ServiceOperationParameter.cs
- UserUseLicenseDictionaryLoader.cs
- Types.cs
- SchemaImporterExtensionElement.cs
- PropertyEntry.cs
- RC2CryptoServiceProvider.cs
- XmlAttributeHolder.cs
- assertwrapper.cs
- HtmlTableRow.cs
- DocumentPageView.cs
- MediaTimeline.cs
- StringWriter.cs
- FontNamesConverter.cs
- BulletChrome.cs
- Int32AnimationUsingKeyFrames.cs
- UrlMappingCollection.cs
- DataGrid.cs
- IsolatedStoragePermission.cs
- WorkflowServiceHost.cs
- TextEndOfSegment.cs
- GridViewHeaderRowPresenter.cs
- WebPartsPersonalization.cs
- COM2PropertyPageUITypeConverter.cs
- MemoryMappedView.cs
- AsyncWaitHandle.cs
- HostingEnvironmentException.cs
- PerformanceCounterPermissionEntry.cs
- SqlDataSourceSelectingEventArgs.cs
- CDSCollectionETWBCLProvider.cs
- PageCatalogPart.cs
- ListSourceHelper.cs
- ISAPIApplicationHost.cs
- TypeDescriptorFilterService.cs
- Geometry3D.cs
- DriveNotFoundException.cs
- ReadContentAsBinaryHelper.cs
- DropShadowEffect.cs
- XmlTypeAttribute.cs
- InheritanceContextHelper.cs
- FrameAutomationPeer.cs
- ItemContainerGenerator.cs
- ProcessHostFactoryHelper.cs
- ObjectDataSourceStatusEventArgs.cs
- SerialPinChanges.cs
- DbDataRecord.cs
- IgnoreDeviceFilterElementCollection.cs
- XmlSchemaImport.cs
- FaultFormatter.cs
- HandledMouseEvent.cs
- SpotLight.cs
- CheckBoxField.cs
- _IPv4Address.cs
- QueryInterceptorAttribute.cs
- ReturnEventArgs.cs
- SurrogateChar.cs
- TextStore.cs
- TextSelectionHighlightLayer.cs
- MsmqIntegrationInputMessage.cs
- KnownAssembliesSet.cs
- DetailsView.cs
- CookielessHelper.cs
- WebHttpElement.cs
- GenericWebPart.cs
- DbDataAdapter.cs
- XmlWellformedWriter.cs
- SettingsContext.cs
- NavigationProperty.cs
- TypeValidationEventArgs.cs
- HttpCachePolicyBase.cs
- ResourceReferenceExpression.cs
- Int64Storage.cs
- CdpEqualityComparer.cs
- FixedSOMLineRanges.cs
- FormViewPagerRow.cs
- LexicalChunk.cs
- CompilationLock.cs
- AnimationStorage.cs
- AttachedAnnotationChangedEventArgs.cs
- ProfilePropertySettingsCollection.cs
- OleDbReferenceCollection.cs
- Utility.cs
- Debug.cs
- ValidatingCollection.cs
- UInt16.cs
- SoapTransportImporter.cs
- DependentList.cs
- securitycriticaldataClass.cs