Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ObsoleteAttribute.cs / 1305376 / 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. // // ==--== /*============================================================ ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpandedProjectionNode.cs
- SizeIndependentAnimationStorage.cs
- TextModifierScope.cs
- XmlAttributeOverrides.cs
- WorkflowServiceOperationListItem.cs
- MetadataSource.cs
- AutomationPropertyInfo.cs
- SemanticAnalyzer.cs
- ThemeDictionaryExtension.cs
- TraceContextRecord.cs
- SplitContainer.cs
- DrawListViewSubItemEventArgs.cs
- EntityClassGenerator.cs
- SerializationStore.cs
- FormatControl.cs
- _Rfc2616CacheValidators.cs
- WebPartHeaderCloseVerb.cs
- SqlOuterApplyReducer.cs
- InvalidCastException.cs
- HttpListenerPrefixCollection.cs
- MetafileEditor.cs
- PolyLineSegment.cs
- ObjectTokenCategory.cs
- DelimitedListTraceListener.cs
- SqlRowUpdatingEvent.cs
- BindingValueChangedEventArgs.cs
- WinInetCache.cs
- TimersDescriptionAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- DSGeneratorProblem.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TreeNodeBindingCollection.cs
- StringConverter.cs
- InternalSafeNativeMethods.cs
- RouteValueExpressionBuilder.cs
- WsdlBuildProvider.cs
- TerminatingOperationBehavior.cs
- TextParagraph.cs
- EntityDataSourceContainerNameConverter.cs
- GridPatternIdentifiers.cs
- WebControlsSection.cs
- LoginUtil.cs
- SyndicationElementExtensionCollection.cs
- Int64AnimationBase.cs
- ResourcesBuildProvider.cs
- ResourceProperty.cs
- InputLanguageManager.cs
- NavigatorOutput.cs
- precedingquery.cs
- EmbossBitmapEffect.cs
- XsltLibrary.cs
- FormsAuthenticationModule.cs
- GenericIdentity.cs
- InteropTrackingRecord.cs
- SeverityFilter.cs
- RtfFormatStack.cs
- TypeToken.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SafeHandles.cs
- VisualCollection.cs
- BamlWriter.cs
- SessionStateModule.cs
- GorillaCodec.cs
- LabelEditEvent.cs
- ExtensionDataReader.cs
- WindowsListViewItemStartMenu.cs
- XsdCachingReader.cs
- SocketPermission.cs
- FormViewInsertedEventArgs.cs
- AttributeUsageAttribute.cs
- TargetException.cs
- WebFaultException.cs
- Pen.cs
- ThicknessAnimation.cs
- XmlHelper.cs
- FlowDocumentView.cs
- HitTestResult.cs
- DetailsViewDeleteEventArgs.cs
- NewExpression.cs
- WinEventTracker.cs
- __ComObject.cs
- StackOverflowException.cs
- BrowserDefinitionCollection.cs
- IdentityElement.cs
- ZipPackagePart.cs
- FormViewPagerRow.cs
- TransactionInterop.cs
- HuffCodec.cs
- SqlClientFactory.cs
- XmlSchemaValidator.cs
- MsmqInputMessagePool.cs
- PropertyItem.cs
- XmlKeywords.cs
- FormViewInsertedEventArgs.cs
- DomNameTable.cs
- ImportCatalogPart.cs
- KeyInterop.cs
- ListBindableAttribute.cs
- IpcChannel.cs
- Rfc2898DeriveBytes.cs