Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataSourceControl.cs
- StateBag.cs
- SurrogateChar.cs
- TCPClient.cs
- DragStartedEventArgs.cs
- LayoutUtils.cs
- COM2PictureConverter.cs
- CollectionChangeEventArgs.cs
- ApplicationHost.cs
- SourceFilter.cs
- QueuePathEditor.cs
- UnmanagedBitmapWrapper.cs
- SessionEndedEventArgs.cs
- XhtmlCssHandler.cs
- CodeSnippetStatement.cs
- WindowsToolbarAsMenu.cs
- CalendarDateRangeChangingEventArgs.cs
- MouseActionConverter.cs
- OptimizerPatterns.cs
- SettingsAttributes.cs
- TabControlAutomationPeer.cs
- AnimationException.cs
- DynamicUpdateCommand.cs
- SoapInteropTypes.cs
- DbSource.cs
- SqlClientWrapperSmiStream.cs
- TextBoxLine.cs
- HMACMD5.cs
- SerializerDescriptor.cs
- HandoffBehavior.cs
- ValueTypePropertyReference.cs
- Vector.cs
- BrowserCapabilitiesFactory35.cs
- UIElementCollection.cs
- TextFindEngine.cs
- EdmType.cs
- TileBrush.cs
- dataprotectionpermissionattribute.cs
- AjaxFrameworkAssemblyAttribute.cs
- ResolveCriteriaCD1.cs
- EdmMember.cs
- IDispatchConstantAttribute.cs
- BrowserCapabilitiesCompiler.cs
- TextTreeUndo.cs
- DataGridViewRowEventArgs.cs
- _emptywebproxy.cs
- CommandHelpers.cs
- DBParameter.cs
- TypeSystemHelpers.cs
- ScrollChrome.cs
- PopupRootAutomationPeer.cs
- CompilerState.cs
- FormsAuthenticationConfiguration.cs
- LinqMaximalSubtreeNominator.cs
- BindableTemplateBuilder.cs
- AuthenticationManager.cs
- Border.cs
- RefreshPropertiesAttribute.cs
- ChannelReliableSession.cs
- GlobalProxySelection.cs
- EncoderFallback.cs
- ExpressionSelection.cs
- StorageEndPropertyMapping.cs
- TypeElement.cs
- HtmlTextArea.cs
- CustomAttributeSerializer.cs
- SymbolType.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataGridTextBox.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewRowsRemovedEventArgs.cs
- BinaryObjectInfo.cs
- ActivatableWorkflowsQueryResult.cs
- ListViewPagedDataSource.cs
- XhtmlCssHandler.cs
- UpdateException.cs
- BaseCollection.cs
- SmiRecordBuffer.cs
- coordinator.cs
- CallId.cs
- InteropBitmapSource.cs
- QilPatternFactory.cs
- FormattedTextSymbols.cs
- _NetworkingPerfCounters.cs
- ConfigsHelper.cs
- MetabaseServerConfig.cs
- XPathBuilder.cs
- ObjectStateManagerMetadata.cs
- FormsIdentity.cs
- ping.cs
- SQLInt32.cs
- SqlBuffer.cs
- FlagsAttribute.cs
- XPathEmptyIterator.cs
- HtmlInputControl.cs
- Vector3DIndependentAnimationStorage.cs
- InstanceDataCollectionCollection.cs
- SqlUdtInfo.cs
- Model3D.cs
- CopyOfAction.cs