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
- Odbc32.cs
- ChannelToken.cs
- UIElementHelper.cs
- MulticastDelegate.cs
- CommentAction.cs
- ModuleConfigurationInfo.cs
- DropShadowBitmapEffect.cs
- TranslateTransform.cs
- GestureRecognizer.cs
- BufferedMessageData.cs
- SQlBooleanStorage.cs
- EntityKeyElement.cs
- CheckoutException.cs
- ScriptReference.cs
- InstanceNormalEvent.cs
- ActivityMarkupSerializer.cs
- BigInt.cs
- HealthMonitoringSection.cs
- XpsFontSubsetter.cs
- HierarchicalDataSourceControl.cs
- VersionedStreamOwner.cs
- srgsitem.cs
- metadatamappinghashervisitor.cs
- GridViewDeleteEventArgs.cs
- HotCommands.cs
- BaseInfoTable.cs
- ListViewTableCell.cs
- ExpandedWrapper.cs
- UserValidatedEventArgs.cs
- ConnectorMovedEventArgs.cs
- ControlCollection.cs
- Configuration.cs
- ComponentRenameEvent.cs
- DataGridViewCheckBoxCell.cs
- MemberPath.cs
- DependsOnAttribute.cs
- ToolZone.cs
- RuleAction.cs
- InvokeDelegate.cs
- MenuBindingsEditorForm.cs
- RequiredAttributeAttribute.cs
- FactoryMaker.cs
- JsonClassDataContract.cs
- DefaultAuthorizationContext.cs
- CaseStatement.cs
- BigInt.cs
- ComboBox.cs
- CodeSubDirectory.cs
- TraceContextEventArgs.cs
- FunctionImportMapping.cs
- RtfControls.cs
- DataViewListener.cs
- SafeSecurityHelper.cs
- GridViewCellAutomationPeer.cs
- Handle.cs
- TagMapCollection.cs
- TimeoutValidationAttribute.cs
- HtmlTitle.cs
- NetworkInterface.cs
- ProgressBarBrushConverter.cs
- TextEditorTables.cs
- ReadOnlyObservableCollection.cs
- WindowsFont.cs
- CharConverter.cs
- OperatingSystem.cs
- RequestTimeoutManager.cs
- WebServiceReceiveDesigner.cs
- FieldNameLookup.cs
- TypeSystem.cs
- Pkcs9Attribute.cs
- SafePointer.cs
- ContextProperty.cs
- SchemaSetCompiler.cs
- ConfigPathUtility.cs
- Inflater.cs
- TypeSystemHelpers.cs
- Int32Converter.cs
- AssemblyHash.cs
- FontNamesConverter.cs
- HtmlFormParameterWriter.cs
- Perspective.cs
- BoundColumn.cs
- ZipIOCentralDirectoryFileHeader.cs
- HostingEnvironment.cs
- MessageHeaderInfoTraceRecord.cs
- WebBrowserEvent.cs
- WindowsPrincipal.cs
- XmlArrayAttribute.cs
- ScalarOps.cs
- StreamAsIStream.cs
- MaterialCollection.cs
- IndexOutOfRangeException.cs
- DataRowChangeEvent.cs
- BrowserTree.cs
- HttpHandlerAction.cs
- GridViewItemAutomationPeer.cs
- CalendarDateChangedEventArgs.cs
- ToolStripDesignerAvailabilityAttribute.cs
- CachedBitmap.cs
- StatusBar.cs