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
- TypeLoadException.cs
- NavigatingCancelEventArgs.cs
- FileInfo.cs
- assemblycache.cs
- Vector3dCollection.cs
- ConfigXmlCDataSection.cs
- cookieexception.cs
- IListConverters.cs
- ReadWriteObjectLock.cs
- CodeTypeOfExpression.cs
- ProfileSettings.cs
- DbConnectionPoolGroupProviderInfo.cs
- ResourceDescriptionAttribute.cs
- SQLBinary.cs
- DescriptionAttribute.cs
- Shape.cs
- ClientConfigurationHost.cs
- IriParsingElement.cs
- OdbcUtils.cs
- LogSwitch.cs
- ParameterElementCollection.cs
- SqlTriggerAttribute.cs
- SqlCommand.cs
- InkCanvasAutomationPeer.cs
- EmbeddedObject.cs
- RelationshipSet.cs
- OleDbConnectionInternal.cs
- PermissionSetTriple.cs
- ByteArrayHelperWithString.cs
- ConstructorArgumentAttribute.cs
- LicenseException.cs
- AdapterSwitches.cs
- StylusEventArgs.cs
- QilValidationVisitor.cs
- MemoryMappedFileSecurity.cs
- Funcletizer.cs
- Bitmap.cs
- InternalMappingException.cs
- RowBinding.cs
- ComponentResourceKey.cs
- GridViewRowCollection.cs
- ClipboardProcessor.cs
- TextViewBase.cs
- ArrayMergeHelper.cs
- RowToParametersTransformer.cs
- _HTTPDateParse.cs
- Boolean.cs
- UserMapPath.cs
- TemplateKeyConverter.cs
- SimpleRecyclingCache.cs
- XComponentModel.cs
- NetCodeGroup.cs
- XmlJsonReader.cs
- TrustLevelCollection.cs
- StackOverflowException.cs
- QueryContinueDragEventArgs.cs
- TabletDevice.cs
- HtmlEmptyTagControlBuilder.cs
- ColumnPropertiesGroup.cs
- GroupStyle.cs
- HMACSHA512.cs
- WebBrowserSiteBase.cs
- FtpWebRequest.cs
- Types.cs
- TransactionInformation.cs
- NameValuePermission.cs
- ProgramNode.cs
- RestHandlerFactory.cs
- HttpRuntime.cs
- FormsAuthenticationUser.cs
- CodeMethodInvokeExpression.cs
- TableCellAutomationPeer.cs
- SelectionItemPattern.cs
- ConnectionPoint.cs
- MonitorWrapper.cs
- RtfToXamlReader.cs
- sortedlist.cs
- Blend.cs
- WsatTransactionInfo.cs
- ExpressionStringBuilder.cs
- UnSafeCharBuffer.cs
- DataGridTablesFactory.cs
- IRCollection.cs
- WindowsButton.cs
- EncoderNLS.cs
- PropertyEmitter.cs
- Viewport3DVisual.cs
- BindingExpression.cs
- ContainerFilterService.cs
- OrderedHashRepartitionStream.cs
- RuntimeConfig.cs
- ItemCheckEvent.cs
- GlyphRunDrawing.cs
- SqlCacheDependencyDatabaseCollection.cs
- BooleanExpr.cs
- ScriptHandlerFactory.cs
- String.cs
- ClientTargetCollection.cs
- SQLBytes.cs
- SimpleRecyclingCache.cs