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
- BuildResultCache.cs
- GridViewDeletedEventArgs.cs
- NamespaceDisplay.xaml.cs
- TextEffect.cs
- GeometryModel3D.cs
- SafeViewOfFileHandle.cs
- baseshape.cs
- LockedActivityGlyph.cs
- ResXFileRef.cs
- BitmapCacheBrush.cs
- WpfGeneratedKnownProperties.cs
- PaperSource.cs
- ProcessHostServerConfig.cs
- UnmanagedHandle.cs
- DataSourceXmlClassAttribute.cs
- IdentityManager.cs
- CancellationToken.cs
- EntityModelSchemaGenerator.cs
- safex509handles.cs
- SemanticResultKey.cs
- ObjectListCommandEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- CodeDirectionExpression.cs
- Button.cs
- BrowserCapabilitiesCodeGenerator.cs
- MessageBox.cs
- LogSwitch.cs
- XmlExpressionDumper.cs
- ParamArrayAttribute.cs
- TcpSocketManager.cs
- FontResourceCache.cs
- DataServiceQuery.cs
- SoapSchemaExporter.cs
- BezierSegment.cs
- DSASignatureDeformatter.cs
- CatalogPart.cs
- HtmlSelectionListAdapter.cs
- Roles.cs
- WinOEToolBoxItem.cs
- TreeSet.cs
- CountAggregationOperator.cs
- SynchronizedPool.cs
- FileAuthorizationModule.cs
- UnsafePeerToPeerMethods.cs
- MSAANativeProvider.cs
- MD5CryptoServiceProvider.cs
- EditorAttribute.cs
- DrawingImage.cs
- PasswordRecovery.cs
- HttpListenerException.cs
- DnsPermission.cs
- WebColorConverter.cs
- XmlTextReaderImplHelpers.cs
- Underline.cs
- AttributeProviderAttribute.cs
- GregorianCalendar.cs
- XmlSchemaSimpleContentRestriction.cs
- Latin1Encoding.cs
- RuntimeTransactionHandle.cs
- HttpListener.cs
- FormViewUpdatedEventArgs.cs
- ProxyOperationRuntime.cs
- IriParsingElement.cs
- NameValueSectionHandler.cs
- PipelineModuleStepContainer.cs
- TextServicesDisplayAttributePropertyRanges.cs
- WebResourceAttribute.cs
- AbstractExpressions.cs
- DataGridViewComboBoxColumn.cs
- UnionCodeGroup.cs
- ScrollProperties.cs
- DataSourceDesigner.cs
- ActivityExecutionContextCollection.cs
- Transform3D.cs
- Track.cs
- EventLogConfiguration.cs
- XPathDocumentNavigator.cs
- CodeLinePragma.cs
- ControlEvent.cs
- UnmanagedMarshal.cs
- DataGridViewCellStyleConverter.cs
- ByteStreamBufferedMessageData.cs
- NoneExcludedImageIndexConverter.cs
- Quad.cs
- DataRowView.cs
- BadImageFormatException.cs
- Set.cs
- _HelperAsyncResults.cs
- SafeNativeMethods.cs
- DataGridViewCellStyle.cs
- EventMappingSettingsCollection.cs
- Error.cs
- PersonalizationState.cs
- DataGridPageChangedEventArgs.cs
- ContentControl.cs
- ObsoleteAttribute.cs
- ConfigsHelper.cs
- AndMessageFilter.cs
- WindowsFormsHostPropertyMap.cs
- HttpSocketManager.cs