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
- StylusPointPropertyUnit.cs
- PolyBezierSegmentFigureLogic.cs
- EntityDataSourceViewSchema.cs
- TreeNodeMouseHoverEvent.cs
- ObjectStateFormatter.cs
- HMACSHA512.cs
- TextServicesPropertyRanges.cs
- JapaneseLunisolarCalendar.cs
- BoolExpression.cs
- WebPartHeaderCloseVerb.cs
- XmlSchemaAnyAttribute.cs
- ExtendLockAsyncResult.cs
- UserNameSecurityToken.cs
- QilChoice.cs
- LinqDataSource.cs
- HtmlInputButton.cs
- KnownBoxes.cs
- InfoCardAsymmetricCrypto.cs
- Attribute.cs
- ControlCodeDomSerializer.cs
- HttpAsyncResult.cs
- Color.cs
- TraceListeners.cs
- AssemblyLoader.cs
- TraceInternal.cs
- SectionVisual.cs
- SqlWebEventProvider.cs
- CallContext.cs
- DataServiceProcessingPipeline.cs
- ListSortDescriptionCollection.cs
- DocumentOrderQuery.cs
- Assert.cs
- LayoutUtils.cs
- unsafenativemethodstextservices.cs
- SiteMapNodeItemEventArgs.cs
- Int32RectValueSerializer.cs
- MatrixAnimationUsingPath.cs
- PropertyGridEditorPart.cs
- CatalogPart.cs
- ConfigXmlCDataSection.cs
- SoapObjectInfo.cs
- CodeMemberMethod.cs
- WebPartEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- PipeException.cs
- TimeSpanMinutesConverter.cs
- SystemInfo.cs
- AssemblyCollection.cs
- storepermissionattribute.cs
- SpecialFolderEnumConverter.cs
- TransformGroup.cs
- ByteAnimationBase.cs
- TableNameAttribute.cs
- TextAutomationPeer.cs
- CompressedStack.cs
- ProcessHost.cs
- HelpHtmlBuilder.cs
- FontDriver.cs
- MarkupObject.cs
- InputBuffer.cs
- FlatButtonAppearance.cs
- ToolStripSettings.cs
- latinshape.cs
- Parallel.cs
- TextDocumentView.cs
- _DisconnectOverlappedAsyncResult.cs
- UInt64Storage.cs
- SizeChangedInfo.cs
- TemplateControlBuildProvider.cs
- PolicyChain.cs
- Assign.cs
- ExpanderAutomationPeer.cs
- __Filters.cs
- WindowsTab.cs
- SafeHandle.cs
- UnmanagedMemoryStreamWrapper.cs
- TypedColumnHandler.cs
- XmlSchemaNotation.cs
- TcpProcessProtocolHandler.cs
- ArrangedElement.cs
- XmlElementCollection.cs
- ValidationError.cs
- DateTimeValueSerializerContext.cs
- WinEventQueueItem.cs
- DetailsViewUpdateEventArgs.cs
- GeneralTransform3DGroup.cs
- VectorValueSerializer.cs
- ExpandedWrapper.cs
- TreeViewHitTestInfo.cs
- LinkedResourceCollection.cs
- OracleMonthSpan.cs
- EditingCommands.cs
- ClassHandlersStore.cs
- TextBox.cs
- FontStyle.cs
- LogStream.cs
- TableLayoutPanel.cs
- AutomationEventArgs.cs
- OrderPreservingSpoolingTask.cs
- PropertyMetadata.cs