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
- SpellerStatusTable.cs
- DataSet.cs
- DependencyPropertyChangedEventArgs.cs
- FlowDocumentView.cs
- TabItemAutomationPeer.cs
- _ConnectOverlappedAsyncResult.cs
- ContentFilePart.cs
- RepeaterItem.cs
- WebPartAuthorizationEventArgs.cs
- WindowsSlider.cs
- FunctionQuery.cs
- Control.cs
- ModelPerspective.cs
- XmlSchemaElement.cs
- DispatchChannelSink.cs
- ItemChangedEventArgs.cs
- InvariantComparer.cs
- EventLogPermissionEntry.cs
- recordstatefactory.cs
- Size3D.cs
- TracedNativeMethods.cs
- SmtpFailedRecipientException.cs
- WebPartCollection.cs
- CharacterBuffer.cs
- ObjectDataSource.cs
- Color.cs
- dsa.cs
- SelectionItemPattern.cs
- StorageEntityTypeMapping.cs
- FillBehavior.cs
- TrackingAnnotationCollection.cs
- PixelShader.cs
- DSASignatureFormatter.cs
- Floater.cs
- SubqueryRules.cs
- TdsEnums.cs
- DataGridRelationshipRow.cs
- DefaultTextStore.cs
- XamlVector3DCollectionSerializer.cs
- HtmlInputButton.cs
- XPathPatternParser.cs
- OletxResourceManager.cs
- RepeaterItemEventArgs.cs
- ManagedIStream.cs
- Helpers.cs
- oledbmetadatacolumnnames.cs
- ControlBuilder.cs
- DictionaryItemsCollection.cs
- ObjectItemCollection.cs
- RegistrationProxy.cs
- XsltContext.cs
- EntityDataSourceContextCreatingEventArgs.cs
- TextMessageEncoder.cs
- Descriptor.cs
- XmlSchemaProviderAttribute.cs
- WindowsToolbarItemAsMenuItem.cs
- UmAlQuraCalendar.cs
- Button.cs
- DeferredSelectedIndexReference.cs
- ConfigXmlSignificantWhitespace.cs
- DiagnosticStrings.cs
- ResetableIterator.cs
- RegexFCD.cs
- OlePropertyStructs.cs
- LeafCellTreeNode.cs
- WebPartTransformerAttribute.cs
- PropertyStore.cs
- SQLInt64Storage.cs
- SecurityNegotiationException.cs
- RectangleConverter.cs
- TreeNode.cs
- ListItemCollection.cs
- ScrollContentPresenter.cs
- QueryStringParameter.cs
- ShaderRenderModeValidation.cs
- Drawing.cs
- SQLInt16Storage.cs
- DecimalAnimationBase.cs
- EntityObject.cs
- BitmapEditor.cs
- CalendarTable.cs
- mediaeventshelper.cs
- SafeNativeMethods.cs
- BitmapEffectCollection.cs
- VisualTarget.cs
- InheritanceAttribute.cs
- WebPartDeleteVerb.cs
- _RequestCacheProtocol.cs
- OracleBFile.cs
- DataGridState.cs
- Debugger.cs
- NavigationCommands.cs
- PageCanvasSize.cs
- LambdaValue.cs
- BindingFormattingDialog.cs
- ClaimTypes.cs
- Calendar.cs
- HtmlInputHidden.cs
- BreadCrumbTextConverter.cs
- RequestCachePolicy.cs