Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Stream.cs
- MailDefinition.cs
- DynamicScriptObject.cs
- XamlSerializer.cs
- XmlSchemaSubstitutionGroup.cs
- ControlDesigner.cs
- TagPrefixInfo.cs
- CommandHelper.cs
- PackageFilter.cs
- UIElementHelper.cs
- IdleTimeoutMonitor.cs
- ProtectedProviderSettings.cs
- ValidatorCollection.cs
- Vector3DCollectionValueSerializer.cs
- TextBox.cs
- ExtenderProvidedPropertyAttribute.cs
- SocketPermission.cs
- SymbolType.cs
- ProtocolsSection.cs
- CodeAttachEventStatement.cs
- Accessors.cs
- CollectionBuilder.cs
- SmtpTransport.cs
- Latin1Encoding.cs
- WebConfigurationHostFileChange.cs
- StructuredTypeEmitter.cs
- PersonalizablePropertyEntry.cs
- sqlstateclientmanager.cs
- ProcessHostServerConfig.cs
- IdSpace.cs
- PixelShader.cs
- PolicyChain.cs
- XmlEncoding.cs
- GraphicsContainer.cs
- CodeCastExpression.cs
- AsymmetricAlgorithm.cs
- SspiNegotiationTokenProviderState.cs
- TrustLevel.cs
- DataBoundControlAdapter.cs
- NetSectionGroup.cs
- SafeFileMappingHandle.cs
- AutoFocusStyle.xaml.cs
- ToolStripGrip.cs
- TraceHandlerErrorFormatter.cs
- StorageConditionPropertyMapping.cs
- SettingsPropertyIsReadOnlyException.cs
- DataSourceControlBuilder.cs
- OracleCommand.cs
- ReadWriteObjectLock.cs
- Form.cs
- State.cs
- XmlQualifiedName.cs
- sqlmetadatafactory.cs
- PageCache.cs
- UnmanagedHandle.cs
- Graphics.cs
- XmlMemberMapping.cs
- DataGridAddNewRow.cs
- safelink.cs
- WebResponse.cs
- XmlDataCollection.cs
- AppearanceEditorPart.cs
- ReliableOutputConnection.cs
- Part.cs
- FloaterBaseParaClient.cs
- CodeExpressionCollection.cs
- DocumentCollection.cs
- DataGridViewComboBoxEditingControl.cs
- WebPartConnectionsCancelEventArgs.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- CompositionAdorner.cs
- XPathDocumentIterator.cs
- TemplateBamlTreeBuilder.cs
- GeneralTransform.cs
- DictionaryEntry.cs
- EncryptedPackageFilter.cs
- exports.cs
- SchemaDeclBase.cs
- ContentValidator.cs
- HtmlGenericControl.cs
- sortedlist.cs
- WebPartTransformerCollection.cs
- HttpApplication.cs
- DoubleUtil.cs
- XmlSchemaAll.cs
- KeysConverter.cs
- NCryptNative.cs
- LowerCaseStringConverter.cs
- RectangleF.cs
- TextElementAutomationPeer.cs
- WindowsPen.cs
- ListBindingConverter.cs
- DesignerListAdapter.cs
- ViewStateModeByIdAttribute.cs
- MiniAssembly.cs
- File.cs
- WorkflowOperationInvoker.cs
- HtmlInputCheckBox.cs
- OrderedParallelQuery.cs
- Byte.cs