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
- UpdatePanelTriggerCollection.cs
- SHA256.cs
- BooleanKeyFrameCollection.cs
- Point3DKeyFrameCollection.cs
- ReferenceConverter.cs
- BasePropertyDescriptor.cs
- SR.cs
- WebPartAuthorizationEventArgs.cs
- XPathDocumentBuilder.cs
- WebCategoryAttribute.cs
- XmlIgnoreAttribute.cs
- ComboBox.cs
- DesignerView.Commands.cs
- CombinedGeometry.cs
- CLRBindingWorker.cs
- CodeFieldReferenceExpression.cs
- SafeHGlobalHandleCritical.cs
- _ProxyRegBlob.cs
- BooleanKeyFrameCollection.cs
- EnvelopedSignatureTransform.cs
- HttpBufferlessInputStream.cs
- ComponentChangedEvent.cs
- ServerIdentity.cs
- IApplicationTrustManager.cs
- LinkedList.cs
- FamilyTypeface.cs
- DictationGrammar.cs
- ThreadStaticAttribute.cs
- Operator.cs
- ErrorWebPart.cs
- StreamInfo.cs
- IndexedString.cs
- ReachBasicContext.cs
- SerializationInfo.cs
- _UriTypeConverter.cs
- CaseExpr.cs
- MultiBindingExpression.cs
- LambdaCompiler.Expressions.cs
- MetadataArtifactLoaderCompositeResource.cs
- HttpListenerException.cs
- PrePostDescendentsWalker.cs
- CodeTypeConstructor.cs
- VectorAnimationUsingKeyFrames.cs
- Transform3DGroup.cs
- XmlNode.cs
- InvalidOperationException.cs
- MexBindingBindingCollectionElement.cs
- ExclusiveCanonicalizationTransform.cs
- RadioButtonRenderer.cs
- AxisAngleRotation3D.cs
- AttachedAnnotation.cs
- TimeStampChecker.cs
- FieldNameLookup.cs
- ReflectionTypeLoadException.cs
- Size.cs
- PnrpPermission.cs
- SafeRightsManagementSessionHandle.cs
- DataListComponentEditor.cs
- DataTable.cs
- BitmapMetadata.cs
- PerformanceCounterPermission.cs
- MethodCallConverter.cs
- ProcessModuleCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- PersonalizableAttribute.cs
- QilReplaceVisitor.cs
- WindowsSlider.cs
- ObjectResult.cs
- TriggerCollection.cs
- BoolExpressionVisitors.cs
- WebSysDescriptionAttribute.cs
- TraceSection.cs
- Internal.cs
- ExecutorLocksHeldException.cs
- Accessible.cs
- RangeValuePattern.cs
- ItemDragEvent.cs
- TerminatorSinks.cs
- TypeConverterAttribute.cs
- StackSpiller.cs
- ToolZone.cs
- WebRequestModuleElementCollection.cs
- PhysicalAddress.cs
- ReachFixedDocumentSerializerAsync.cs
- Attributes.cs
- MouseGestureConverter.cs
- FrameDimension.cs
- WmlCalendarAdapter.cs
- PinnedBufferMemoryStream.cs
- TextRangeAdaptor.cs
- keycontainerpermission.cs
- FactoryRecord.cs
- GridView.cs
- HelpEvent.cs
- HtmlElementErrorEventArgs.cs
- ErrorInfoXmlDocument.cs
- XsltSettings.cs
- ManifestBasedResourceGroveler.cs
- DocumentGrid.cs
- LiteralSubsegment.cs