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
- EntityReference.cs
- IndexedGlyphRun.cs
- TraceHandlerErrorFormatter.cs
- XhtmlConformanceSection.cs
- ViewStateModeByIdAttribute.cs
- DefaultAutoFieldGenerator.cs
- CommunicationException.cs
- PaperSize.cs
- SystemColors.cs
- ConnectionInterfaceCollection.cs
- AppearanceEditorPart.cs
- QueryCacheEntry.cs
- EventRoute.cs
- ListItemCollection.cs
- AesManaged.cs
- SystemIPAddressInformation.cs
- OracleEncoding.cs
- XmlReflectionImporter.cs
- XsltSettings.cs
- QualificationDataAttribute.cs
- XmlC14NWriter.cs
- StackOverflowException.cs
- ContextMarshalException.cs
- HtmlTable.cs
- RenderData.cs
- CodeArrayIndexerExpression.cs
- AssemblySettingAttributes.cs
- ToolboxDataAttribute.cs
- BehaviorService.cs
- ProgramPublisher.cs
- ArithmeticException.cs
- DescendantBaseQuery.cs
- BoundField.cs
- PeerTransportCredentialType.cs
- MSAAEventDispatcher.cs
- Brush.cs
- Button.cs
- WindowsToolbar.cs
- AppDomainFactory.cs
- DataControlLinkButton.cs
- DecimalAnimationUsingKeyFrames.cs
- Model3D.cs
- FormatConvertedBitmap.cs
- ScrollContentPresenter.cs
- XmlQualifiedName.cs
- XPathParser.cs
- WebDisplayNameAttribute.cs
- SqlDependency.cs
- InnerItemCollectionView.cs
- ColorPalette.cs
- OracleInternalConnection.cs
- QueryOpeningEnumerator.cs
- Vector3DValueSerializer.cs
- HttpProfileBase.cs
- SupportingTokenParameters.cs
- SHA256CryptoServiceProvider.cs
- EntityReference.cs
- StringArrayConverter.cs
- AnnotationAuthorChangedEventArgs.cs
- SplitterPanel.cs
- HttpListenerException.cs
- FrameworkContentElementAutomationPeer.cs
- EpmContentDeSerializerBase.cs
- ErrorRuntimeConfig.cs
- CngKeyBlobFormat.cs
- DataGridViewColumnEventArgs.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- FilePrompt.cs
- GridViewColumnCollection.cs
- XmlExtensionFunction.cs
- ConnectionManagementSection.cs
- CodeTypeReferenceCollection.cs
- UrlMappingsModule.cs
- StrongNameUtility.cs
- BufferedReadStream.cs
- NamedPipeAppDomainProtocolHandler.cs
- ColumnBinding.cs
- CharacterMetricsDictionary.cs
- TextEditorCopyPaste.cs
- DataServiceQueryOfT.cs
- ResourcesGenerator.cs
- SqlRewriteScalarSubqueries.cs
- ShortcutKeysEditor.cs
- X509Certificate2.cs
- OlePropertyStructs.cs
- EventLog.cs
- HierarchicalDataTemplate.cs
- Condition.cs
- BehaviorEditorPart.cs
- __FastResourceComparer.cs
- TreeView.cs
- HtmlInputText.cs
- IntSecurity.cs
- BasicHttpSecurityMode.cs
- ComponentResourceManager.cs
- ManagedWndProcTracker.cs
- EventMap.cs
- NonSerializedAttribute.cs
- JsonWriterDelegator.cs
- x509store.cs