Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CipherData.cs
- ObjectDataSourceFilteringEventArgs.cs
- Timer.cs
- DataGridItemEventArgs.cs
- EFDataModelProvider.cs
- ViewValidator.cs
- WebPartConnectionCollection.cs
- DataSourceXmlClassAttribute.cs
- ContextMarshalException.cs
- KeyGesture.cs
- EmptyEnumerable.cs
- BamlBinaryReader.cs
- BuildProviderAppliesToAttribute.cs
- FormViewDeleteEventArgs.cs
- DbDataReader.cs
- ProcessMonitor.cs
- ValueUtilsSmi.cs
- EncryptedType.cs
- ObjectDisposedException.cs
- ManualResetEventSlim.cs
- MutableAssemblyCacheEntry.cs
- GenericWebPart.cs
- SelectManyQueryOperator.cs
- TextEditorDragDrop.cs
- DataGridViewCellConverter.cs
- FastEncoder.cs
- PerfProviderCollection.cs
- AttributeAction.cs
- EncoderBestFitFallback.cs
- MetadataFile.cs
- StorageSetMapping.cs
- RuleElement.cs
- Enumerable.cs
- MetadataPropertyvalue.cs
- URLEditor.cs
- VirtualPathUtility.cs
- TCPListener.cs
- PropertyDescriptorCollection.cs
- ObjectList.cs
- HtmlLabelAdapter.cs
- URL.cs
- XmlChildEnumerator.cs
- PointF.cs
- NotImplementedException.cs
- ExpressionValueEditor.cs
- ProfileGroupSettingsCollection.cs
- TextShapeableCharacters.cs
- DbTransaction.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ContractHandle.cs
- XslTransform.cs
- EntityContainerEntitySet.cs
- PersonalizationProvider.cs
- SafeThreadHandle.cs
- DataSetSchema.cs
- XmlDocumentFieldSchema.cs
- ParentControlDesigner.cs
- ProvidePropertyAttribute.cs
- AppManager.cs
- StandardBindingOptionalReliableSessionElement.cs
- SettingsAttributeDictionary.cs
- PathFigure.cs
- PenContext.cs
- SchemaHelper.cs
- Soap.cs
- IgnoreFileBuildProvider.cs
- GeneralTransform3D.cs
- DataColumnChangeEvent.cs
- oledbconnectionstring.cs
- SpeechAudioFormatInfo.cs
- ServiceDiscoveryBehavior.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- RequestCache.cs
- DataViewListener.cs
- DataGridSortCommandEventArgs.cs
- CornerRadiusConverter.cs
- ResourceManager.cs
- CmsInterop.cs
- HtmlButton.cs
- SafePointer.cs
- FactoryId.cs
- RadioButtonList.cs
- ISCIIEncoding.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TextEndOfParagraph.cs
- MenuItemCollectionEditor.cs
- BehaviorService.cs
- PrimitiveXmlSerializers.cs
- TreeBuilderBamlTranslator.cs
- TreeView.cs
- EmbeddedObject.cs
- SwitchDesigner.xaml.cs
- JsonFormatGeneratorStatics.cs
- AstNode.cs
- BamlMapTable.cs
- SqlGatherConsumedAliases.cs
- XmlSchemaNotation.cs
- DrawListViewItemEventArgs.cs
- OleAutBinder.cs
- RoutedEventArgs.cs