Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- mongolianshape.cs
- DataServices.cs
- Int16.cs
- SendKeys.cs
- DataGridViewImageColumn.cs
- COM2PictureConverter.cs
- ToolStripItemImageRenderEventArgs.cs
- Missing.cs
- MemberPath.cs
- DesignerToolboxInfo.cs
- PathStreamGeometryContext.cs
- TextPointer.cs
- BufferedWebEventProvider.cs
- ParameterCollection.cs
- C14NUtil.cs
- ObjectItemCollection.cs
- TextParagraphProperties.cs
- InternalPolicyElement.cs
- LicenseContext.cs
- ClientRuntimeConfig.cs
- MonthCalendar.cs
- ButtonPopupAdapter.cs
- ObjectNotFoundException.cs
- TableChangeProcessor.cs
- QilInvokeLateBound.cs
- ResourceContainer.cs
- MsmqAppDomainProtocolHandler.cs
- IChannel.cs
- SByteStorage.cs
- HandlerFactoryWrapper.cs
- ListSourceHelper.cs
- VersionedStreamOwner.cs
- HwndPanningFeedback.cs
- RelationshipEndCollection.cs
- CheckBox.cs
- SR.cs
- MembershipUser.cs
- ipaddressinformationcollection.cs
- UpdateManifestForBrowserApplication.cs
- isolationinterop.cs
- TypeNameConverter.cs
- Point3DIndependentAnimationStorage.cs
- EncoderParameter.cs
- PersianCalendar.cs
- ResourceKey.cs
- MissingSatelliteAssemblyException.cs
- Dump.cs
- VirtualizingStackPanel.cs
- UnionExpr.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ScrollBarRenderer.cs
- GridViewUpdatedEventArgs.cs
- CodeGotoStatement.cs
- InputScopeConverter.cs
- SecureEnvironment.cs
- Animatable.cs
- CoTaskMemHandle.cs
- ContainerActivationHelper.cs
- HtmlInputButton.cs
- TemplateLookupAction.cs
- BuildTopDownAttribute.cs
- PathGradientBrush.cs
- CryptoConfig.cs
- DataViewListener.cs
- ImageIndexEditor.cs
- WindowPattern.cs
- InstanceContextManager.cs
- PassportPrincipal.cs
- Scene3D.cs
- X509Utils.cs
- SecurityUtils.cs
- filewebresponse.cs
- UserControlCodeDomTreeGenerator.cs
- TraceContext.cs
- BindingMemberInfo.cs
- TemplateApplicationHelper.cs
- GroupBox.cs
- SevenBitStream.cs
- KeyValueInternalCollection.cs
- DefaultExpression.cs
- Comparer.cs
- BuildProviderCollection.cs
- ReferenceEqualityComparer.cs
- InputGestureCollection.cs
- ExclusiveTcpTransportManager.cs
- COM2TypeInfoProcessor.cs
- RedirectionProxy.cs
- ValidatorCollection.cs
- WbmpConverter.cs
- HandoffBehavior.cs
- ObjectConverter.cs
- Tile.cs
- ListControlConvertEventArgs.cs
- SqlTopReducer.cs
- ZoomPercentageConverter.cs
- AxHost.cs
- SqlNotificationEventArgs.cs
- XmlNodeReader.cs
- DataFormats.cs
- RectangleHotSpot.cs