Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // // ==--== /*============================================================ ** ** 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
- initElementDictionary.cs
- CommonRemoteMemoryBlock.cs
- ADConnectionHelper.cs
- FormatVersion.cs
- Visual3D.cs
- FieldCollectionEditor.cs
- LinqDataSourceHelper.cs
- Style.cs
- FlagsAttribute.cs
- BidirectionalDictionary.cs
- BufferedGraphics.cs
- ItemContainerGenerator.cs
- DataSourceXmlClassAttribute.cs
- PathFigureCollectionValueSerializer.cs
- WebResponse.cs
- Part.cs
- DataGridViewRowEventArgs.cs
- SecurityDocument.cs
- WinFormsSpinner.cs
- _ProxyChain.cs
- MarkupCompiler.cs
- XmlAnyElementAttribute.cs
- ParameterCollection.cs
- NotSupportedException.cs
- HtmlTableRowCollection.cs
- AnnotationResourceChangedEventArgs.cs
- LabelLiteral.cs
- Int64Converter.cs
- LinkClickEvent.cs
- SimpleWorkerRequest.cs
- BitmapPalettes.cs
- MaterialGroup.cs
- TextPointer.cs
- Substitution.cs
- Tokenizer.cs
- BeginStoryboard.cs
- PromptEventArgs.cs
- precedingsibling.cs
- NameValueCollection.cs
- PrincipalPermission.cs
- InvalidateEvent.cs
- ActivityExecutionFilter.cs
- URIFormatException.cs
- HttpListenerRequest.cs
- dbdatarecord.cs
- XmlSchemaGroupRef.cs
- X509CertificateValidationMode.cs
- ConnectionOrientedTransportChannelListener.cs
- PeerNodeTraceRecord.cs
- StrokeCollectionDefaultValueFactory.cs
- StreamingContext.cs
- PathFigure.cs
- MenuItemCollection.cs
- CheckedListBox.cs
- URI.cs
- Comparer.cs
- SHA512.cs
- AuthorizationPolicyTypeElementCollection.cs
- BackgroundWorker.cs
- HorizontalAlignConverter.cs
- DataKeyArray.cs
- TypeUtils.cs
- ButtonPopupAdapter.cs
- UserNamePasswordClientCredential.cs
- ParseChildrenAsPropertiesAttribute.cs
- CorrelationRequestContext.cs
- TeredoHelper.cs
- SqlUserDefinedTypeAttribute.cs
- Timeline.cs
- KeyedHashAlgorithm.cs
- SmiGettersStream.cs
- Hyperlink.cs
- MemberCollection.cs
- UnmanagedMemoryStream.cs
- AppDomainProtocolHandler.cs
- XmlDataFileEditor.cs
- GACIdentityPermission.cs
- HashHelper.cs
- AvtEvent.cs
- XPathDescendantIterator.cs
- SqlNodeAnnotation.cs
- XmlUrlResolver.cs
- BasePropertyDescriptor.cs
- DesigntimeLicenseContext.cs
- COM2FontConverter.cs
- __TransparentProxy.cs
- LocalizationParserHooks.cs
- StackOverflowException.cs
- DataTrigger.cs
- UpdateException.cs
- XmlSerializationWriter.cs
- ListMarkerLine.cs
- RenderData.cs
- StringAttributeCollection.cs
- Query.cs
- ConfigurationManagerHelper.cs
- FtpCachePolicyElement.cs
- MLangCodePageEncoding.cs
- FilteredXmlReader.cs
- XpsFont.cs