Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataAccessor.cs
- SerializationAttributes.cs
- FontStretch.cs
- VisualStyleTypesAndProperties.cs
- MimeXmlReflector.cs
- ActiveDocumentEvent.cs
- SiteMembershipCondition.cs
- ImageConverter.cs
- TokenBasedSet.cs
- RuleCache.cs
- TableAutomationPeer.cs
- MobileTextWriter.cs
- ToolStripItem.cs
- GroupByExpressionRewriter.cs
- DataGridViewRowPostPaintEventArgs.cs
- HwndProxyElementProvider.cs
- NetMsmqSecurity.cs
- EventQueueState.cs
- SpellerError.cs
- DataViewManager.cs
- ASCIIEncoding.cs
- DesignerListAdapter.cs
- NumberFormatInfo.cs
- DataTableMappingCollection.cs
- XmlSerializerImportOptions.cs
- XmlSchemaDocumentation.cs
- SingleKeyFrameCollection.cs
- ExpressionEditorAttribute.cs
- CacheMemory.cs
- ConfigurationManagerInternalFactory.cs
- ConfigurationConverterBase.cs
- LogReserveAndAppendState.cs
- UnsafeNativeMethods.cs
- TemplateColumn.cs
- DatatypeImplementation.cs
- FormViewRow.cs
- AuthStoreRoleProvider.cs
- ThreadWorkerController.cs
- InputEventArgs.cs
- Avt.cs
- KnownTypesHelper.cs
- WindowsScroll.cs
- CodeMemberEvent.cs
- ManipulationDelta.cs
- TemplateBindingExtensionConverter.cs
- DataObjectSettingDataEventArgs.cs
- Mouse.cs
- CheckBox.cs
- PropertyInformationCollection.cs
- HierarchicalDataSourceControl.cs
- WsdlHelpGeneratorElement.cs
- AsymmetricKeyExchangeFormatter.cs
- DelegateSerializationHolder.cs
- TraceSection.cs
- ServiceManager.cs
- DataGridViewLinkCell.cs
- ComplexLine.cs
- MainMenu.cs
- TdsEnums.cs
- RtfControls.cs
- StylusPlugin.cs
- _OSSOCK.cs
- DataControlButton.cs
- APCustomTypeDescriptor.cs
- ListBindingConverter.cs
- TextEndOfSegment.cs
- Certificate.cs
- CollaborationHelperFunctions.cs
- XamlInt32CollectionSerializer.cs
- WindowsScrollBar.cs
- SchemaMapping.cs
- Button.cs
- CharConverter.cs
- CultureNotFoundException.cs
- TextEncodedRawTextWriter.cs
- ListenerUnsafeNativeMethods.cs
- SmiContextFactory.cs
- SQLStringStorage.cs
- XamlBuildTaskServices.cs
- XmlBindingWorker.cs
- InputReferenceExpression.cs
- DoubleIndependentAnimationStorage.cs
- OrthographicCamera.cs
- PartialCachingAttribute.cs
- GridViewCancelEditEventArgs.cs
- DocumentViewerBase.cs
- TypeListConverter.cs
- PersistenceProvider.cs
- SqlDataSource.cs
- IResourceProvider.cs
- XPathException.cs
- MultiBindingExpression.cs
- XamlSerializer.cs
- BuildResult.cs
- ToolStripPanelDesigner.cs
- DiscardableAttribute.cs
- SafeReadContext.cs
- ArgumentNullException.cs
- PrimitiveDataContract.cs
- ListViewItem.cs