Code:
/ FX-1434 / FX-1434 / 1.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
- CompiledRegexRunner.cs
- MultiTrigger.cs
- ToolStripHighContrastRenderer.cs
- Nullable.cs
- StatusInfoItem.cs
- WebContext.cs
- IBuiltInEvidence.cs
- SkinBuilder.cs
- TextRenderer.cs
- WebServiceResponse.cs
- CmsInterop.cs
- ResXResourceWriter.cs
- GeneratedContractType.cs
- securitycriticaldataformultiplegetandset.cs
- AttributeCollection.cs
- HtmlTextBoxAdapter.cs
- ListItemViewControl.cs
- DummyDataSource.cs
- HtmlHead.cs
- DictionarySectionHandler.cs
- DocumentPageViewAutomationPeer.cs
- RegisteredScript.cs
- FacetEnabledSchemaElement.cs
- LinkedDataMemberFieldEditor.cs
- AbstractExpressions.cs
- ListBindableAttribute.cs
- FileClassifier.cs
- QuotedStringFormatReader.cs
- EventLogPermissionEntry.cs
- EventSetter.cs
- HttpHandlerAction.cs
- TriState.cs
- JsonDeserializer.cs
- RayHitTestParameters.cs
- RemoveStoryboard.cs
- DefaultPropertyAttribute.cs
- DataSetSchema.cs
- UIElement3D.cs
- EncoderFallback.cs
- XmlSchemaDocumentation.cs
- ContentControl.cs
- StorageScalarPropertyMapping.cs
- BitStack.cs
- BoolLiteral.cs
- BrowserDefinition.cs
- TextEditorThreadLocalStore.cs
- CalculatedColumn.cs
- PropertyConverter.cs
- FixedSOMFixedBlock.cs
- PageFunction.cs
- XmlWriterTraceListener.cs
- XMLSyntaxException.cs
- WorkflowServiceBuildProvider.cs
- DbConnectionHelper.cs
- StructuredTypeInfo.cs
- RedistVersionInfo.cs
- ServicePointManagerElement.cs
- Visual3D.cs
- Exception.cs
- FrameworkPropertyMetadata.cs
- ContextMarshalException.cs
- TextPatternIdentifiers.cs
- RewritingPass.cs
- XmlExpressionDumper.cs
- ButtonBase.cs
- Pen.cs
- DBCommandBuilder.cs
- autovalidator.cs
- Line.cs
- DataKey.cs
- ReturnType.cs
- DataGridTextBox.cs
- HebrewCalendar.cs
- ConfigurationStrings.cs
- ByteArrayHelperWithString.cs
- filewebresponse.cs
- AttributeParameterInfo.cs
- WebPartConnectionsCloseVerb.cs
- AsyncStreamReader.cs
- TableItemProviderWrapper.cs
- OdbcTransaction.cs
- DriveNotFoundException.cs
- QuestionEventArgs.cs
- Publisher.cs
- TypeReference.cs
- CngAlgorithm.cs
- FrameworkElementFactoryMarkupObject.cs
- ChineseLunisolarCalendar.cs
- KeyConstraint.cs
- ThemeDictionaryExtension.cs
- _HeaderInfo.cs
- UpDownBase.cs
- HttpSessionStateBase.cs
- IsolatedStorage.cs
- StructuredType.cs
- ExpressionBuilder.cs
- XmlAttributeAttribute.cs
- KnownTypeDataContractResolver.cs
- BindingExpressionBase.cs
- SmtpDigestAuthenticationModule.cs