Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ObsoleteAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridItem.cs
- ArgIterator.cs
- RemotingAttributes.cs
- DocumentReferenceCollection.cs
- ImageMetadata.cs
- ClockController.cs
- PersonalizationStateInfoCollection.cs
- StringArrayConverter.cs
- PrivateFontCollection.cs
- DefinitionBase.cs
- SelectedDatesCollection.cs
- New.cs
- FormattedText.cs
- HttpContextServiceHost.cs
- Effect.cs
- TreeNodeStyle.cs
- TdsRecordBufferSetter.cs
- EnumerableRowCollectionExtensions.cs
- XsltArgumentList.cs
- TextCompositionManager.cs
- ProfileProvider.cs
- _UriTypeConverter.cs
- AdPostCacheSubstitution.cs
- ResolveCriteria.cs
- DependencyPropertyAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SqlTopReducer.cs
- GcSettings.cs
- CannotUnloadAppDomainException.cs
- ScriptBehaviorDescriptor.cs
- LineBreak.cs
- DispatcherExceptionFilterEventArgs.cs
- EventQueueState.cs
- RoutedUICommand.cs
- BasicBrowserDialog.cs
- CodeDomLoader.cs
- SurrogateSelector.cs
- ProvidePropertyAttribute.cs
- Expression.cs
- XmlSerializationGeneratedCode.cs
- RequestSecurityTokenResponseCollection.cs
- XmlNode.cs
- ResolveNameEventArgs.cs
- AbandonedMutexException.cs
- MultiSelector.cs
- SemanticKeyElement.cs
- _ChunkParse.cs
- RemotingAttributes.cs
- HandlerMappingMemo.cs
- XmlChildEnumerator.cs
- SymbolResolver.cs
- DbModificationCommandTree.cs
- XsdBuilder.cs
- ObjectDataSourceStatusEventArgs.cs
- RealizationDrawingContextWalker.cs
- ExecutionTracker.cs
- DataGridColumn.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- DataTemplateSelector.cs
- ActivationArguments.cs
- CombinedHttpChannel.cs
- ListViewGroup.cs
- FieldToken.cs
- List.cs
- UnmanagedBitmapWrapper.cs
- SelectionRange.cs
- ScrollBar.cs
- GetCardDetailsRequest.cs
- WebPartMenuStyle.cs
- HtmlElementErrorEventArgs.cs
- SmiXetterAccessMap.cs
- BinaryCommonClasses.cs
- PolicyReader.cs
- ResourcePart.cs
- PagePropertiesChangingEventArgs.cs
- CodeChecksumPragma.cs
- AsmxEndpointPickerExtension.cs
- PartitionerStatic.cs
- ArrayList.cs
- XmlStringTable.cs
- PointF.cs
- IntSecurity.cs
- PerfCounterSection.cs
- IMembershipProvider.cs
- ManagementOperationWatcher.cs
- ResourceSet.cs
- ExpandCollapseProviderWrapper.cs
- DesignerCommandSet.cs
- NotSupportedException.cs
- WsdlImporterElement.cs
- XAMLParseException.cs
- FindCriteriaCD1.cs
- Debug.cs
- XamlWrapperReaders.cs
- SerializerProvider.cs
- ResXResourceSet.cs
- Baml2006ReaderContext.cs
- PageHandlerFactory.cs
- ExceptionTrace.cs
- LinqDataSourceEditData.cs