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
- DataSourceUtil.cs
- datacache.cs
- PageMediaType.cs
- LogLogRecordEnumerator.cs
- XamlToRtfWriter.cs
- SchemaImporterExtensionElement.cs
- PassportIdentity.cs
- XmlSchemaComplexContent.cs
- PathData.cs
- UpdateManifestForBrowserApplication.cs
- IncrementalReadDecoders.cs
- RadioButtonList.cs
- InputScope.cs
- _LoggingObject.cs
- Compiler.cs
- Triplet.cs
- MessageContractImporter.cs
- WindowClosedEventArgs.cs
- IHttpResponseInternal.cs
- ConnectionManagementElement.cs
- GuidelineSet.cs
- RemotingAttributes.cs
- Compensation.cs
- ExpressionVisitorHelpers.cs
- DataGridItem.cs
- TypeDescriptionProviderAttribute.cs
- IndexedDataBuffer.cs
- TreeNodeSelectionProcessor.cs
- DiscoveryEndpointElement.cs
- LinearKeyFrames.cs
- EntryPointNotFoundException.cs
- EarlyBoundInfo.cs
- StatusBarAutomationPeer.cs
- MouseBinding.cs
- DynamicEndpointElement.cs
- Grant.cs
- HashHelper.cs
- WebSysDescriptionAttribute.cs
- StringOutput.cs
- TypeResolvingOptionsAttribute.cs
- QilIterator.cs
- NativeObjectSecurity.cs
- connectionpool.cs
- ConnectionManagementSection.cs
- Operators.cs
- loginstatus.cs
- TdsParserHelperClasses.cs
- IdSpace.cs
- PipelineModuleStepContainer.cs
- XmlSchemaAny.cs
- PrintPreviewGraphics.cs
- PropertyConverter.cs
- EmptyEnumerator.cs
- XmlIncludeAttribute.cs
- SafeEventLogWriteHandle.cs
- WindowsTreeView.cs
- BinHexEncoder.cs
- RuleInfoComparer.cs
- UITypeEditor.cs
- DeferredSelectedIndexReference.cs
- RichTextBoxConstants.cs
- ConstNode.cs
- DragStartedEventArgs.cs
- InvokeProviderWrapper.cs
- GeometryGroup.cs
- Part.cs
- AgileSafeNativeMemoryHandle.cs
- Axis.cs
- sqlcontext.cs
- IndexerNameAttribute.cs
- RuntimeConfigurationRecord.cs
- SiteIdentityPermission.cs
- TemplateFactory.cs
- DeploymentExceptionMapper.cs
- assertwrapper.cs
- GeneralTransform3DCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Inflater.cs
- SystemTcpConnection.cs
- WebPartDeleteVerb.cs
- SchemaReference.cs
- DataGridViewCellCancelEventArgs.cs
- ErrorHandler.cs
- EnumerableCollectionView.cs
- NavigateEvent.cs
- UIPermission.cs
- BrowserPolicyValidator.cs
- DbParameterCollection.cs
- EntityStoreSchemaFilterEntry.cs
- StylusTip.cs
- List.cs
- WorkflowMarkupSerializationProvider.cs
- CalloutQueueItem.cs
- ExtensibleClassFactory.cs
- ToolStripRenderEventArgs.cs
- ListItemCollection.cs
- SourceElementsCollection.cs
- SynchronizationLockException.cs
- PropertyEntry.cs
- GB18030Encoding.cs