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
- EdgeModeValidation.cs
- QueryStringHandler.cs
- SqlErrorCollection.cs
- PropertyGroupDescription.cs
- WinEventQueueItem.cs
- PerfCounters.cs
- SplayTreeNode.cs
- StaticFileHandler.cs
- SmtpCommands.cs
- Paragraph.cs
- TreeViewImageIndexConverter.cs
- RequestQueue.cs
- InternalControlCollection.cs
- XPathBuilder.cs
- EventLogTraceListener.cs
- ProtectedConfigurationProviderCollection.cs
- UInt16Storage.cs
- ParameterEditorUserControl.cs
- Registry.cs
- StylusTouchDevice.cs
- EnumUnknown.cs
- OpacityConverter.cs
- ToolStripOverflow.cs
- ExternalException.cs
- _BasicClient.cs
- BaseDataListActionList.cs
- MaterialGroup.cs
- DesignTimeParseData.cs
- ToolStripPanelRenderEventArgs.cs
- FieldToken.cs
- CharEnumerator.cs
- CodeIndexerExpression.cs
- TypeConverters.cs
- ExpressionParser.cs
- FileChangesMonitor.cs
- UntrustedRecipientException.cs
- BinaryUtilClasses.cs
- ZipFileInfo.cs
- XmlSchemaRedefine.cs
- TextEndOfSegment.cs
- SecurityDocument.cs
- TailCallAnalyzer.cs
- Utilities.cs
- CryptoProvider.cs
- DesignerSerializationOptionsAttribute.cs
- CaseInsensitiveComparer.cs
- StandardOleMarshalObject.cs
- Axis.cs
- AxHost.cs
- ExpressionEditorAttribute.cs
- List.cs
- RelationshipWrapper.cs
- HwndStylusInputProvider.cs
- Pts.cs
- WinInetCache.cs
- FixedFindEngine.cs
- SharedMemory.cs
- TextEditorContextMenu.cs
- HierarchicalDataTemplate.cs
- JsonFormatWriterGenerator.cs
- DbConnectionFactory.cs
- _StreamFramer.cs
- ViewSimplifier.cs
- IconBitmapDecoder.cs
- JulianCalendar.cs
- InputScope.cs
- MemberHolder.cs
- ScrollData.cs
- DataControlFieldCollection.cs
- HttpWebRequestElement.cs
- UiaCoreProviderApi.cs
- NotSupportedException.cs
- IxmlLineInfo.cs
- UnmanagedBitmapWrapper.cs
- OracleRowUpdatedEventArgs.cs
- FormClosingEvent.cs
- CompilationSection.cs
- PathStreamGeometryContext.cs
- HtmlImage.cs
- ProcessModule.cs
- GridViewSelectEventArgs.cs
- TokenizerHelper.cs
- DataBinder.cs
- SQLMembershipProvider.cs
- ListItemParagraph.cs
- TransformGroup.cs
- Sequence.cs
- ProxyAttribute.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- CollectionContainer.cs
- DataControlButton.cs
- BulletChrome.cs
- DbSetClause.cs
- Hex.cs
- PrincipalPermission.cs
- EventHandlers.cs
- AsyncPostBackErrorEventArgs.cs
- ApplicationException.cs
- CompModSwitches.cs
- ScaleTransform3D.cs