Code:
/ FX-1434 / FX-1434 / 1.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
- BindingEntityInfo.cs
- EmbeddedMailObjectCollectionEditor.cs
- TreeViewItemAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- RuntimeConfigLKG.cs
- WsdlInspector.cs
- MenuScrollingVisibilityConverter.cs
- CacheChildrenQuery.cs
- OutputCacheModule.cs
- Automation.cs
- ModifyActivitiesPropertyDescriptor.cs
- AssociationSet.cs
- CodeAssignStatement.cs
- DbConnectionPoolCounters.cs
- XPathSelfQuery.cs
- TimeSpanStorage.cs
- RegexWorker.cs
- PerformanceCountersBase.cs
- ServicePoint.cs
- MD5CryptoServiceProvider.cs
- UrlPath.cs
- BuilderPropertyEntry.cs
- TextTreeFixupNode.cs
- DataGridViewRowPostPaintEventArgs.cs
- StructuralType.cs
- EdmToObjectNamespaceMap.cs
- RegexParser.cs
- AuthenticodeSignatureInformation.cs
- TiffBitmapEncoder.cs
- ProbeMatches11.cs
- CompareValidator.cs
- DeclarativeConditionsCollection.cs
- Executor.cs
- SchemaMapping.cs
- DependencyPropertyKind.cs
- WizardForm.cs
- SystemInformation.cs
- JapaneseLunisolarCalendar.cs
- SessionPageStateSection.cs
- DataGridViewCellStyleEditor.cs
- UserPersonalizationStateInfo.cs
- ChangeDirector.cs
- XmlReaderDelegator.cs
- ScrollableControl.cs
- AssemblyName.cs
- MachineKeySection.cs
- ThreadStartException.cs
- BitmapPalettes.cs
- XmlSerializableWriter.cs
- RepeatButton.cs
- Polygon.cs
- ProjectionPruner.cs
- ScaleTransform.cs
- COM2TypeInfoProcessor.cs
- IDispatchConstantAttribute.cs
- Model3DGroup.cs
- GacUtil.cs
- HebrewCalendar.cs
- ReadContentAsBinaryHelper.cs
- SchemaTypeEmitter.cs
- HierarchicalDataTemplate.cs
- BamlRecordReader.cs
- CombinedGeometry.cs
- SoapExtensionTypeElement.cs
- GridSplitter.cs
- SecurityKeyIdentifier.cs
- SchemaEntity.cs
- CleanUpVirtualizedItemEventArgs.cs
- CookieProtection.cs
- FontFamily.cs
- TrackingMemoryStream.cs
- FigureParaClient.cs
- PropertyEmitter.cs
- SHA384Managed.cs
- BaseDataList.cs
- RootBrowserWindow.cs
- ScriptMethodAttribute.cs
- CallSiteHelpers.cs
- SqlInternalConnectionSmi.cs
- DataGridRowsPresenter.cs
- ConnectionsZoneDesigner.cs
- MissingMethodException.cs
- UrlUtility.cs
- HitTestParameters3D.cs
- CombinedGeometry.cs
- Registry.cs
- RemotingException.cs
- SafeNativeMemoryHandle.cs
- AssemblyAttributesGoHere.cs
- ToolStripButton.cs
- HostedNamedPipeTransportManager.cs
- Thickness.cs
- BatchParser.cs
- AttributeEmitter.cs
- XamlSerializerUtil.cs
- PaperSource.cs
- RegistryDataKey.cs
- StyleSheetComponentEditor.cs
- AppDomainUnloadedException.cs
- SafeFileMappingHandle.cs