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
- DataGridToolTip.cs
- TextSpan.cs
- XmlWrappingReader.cs
- Visual.cs
- ValidationResult.cs
- LinkButton.cs
- InputLangChangeRequestEvent.cs
- Path.cs
- TransportManager.cs
- WorkflowTransactionOptions.cs
- Lasso.cs
- StringDictionary.cs
- FixedDSBuilder.cs
- Calendar.cs
- AliasGenerator.cs
- XmlSchemaException.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- OleDbEnumerator.cs
- WindowsGrip.cs
- SpanIndex.cs
- _IPv4Address.cs
- ActiveXHelper.cs
- Vector3DKeyFrameCollection.cs
- Column.cs
- ItemAutomationPeer.cs
- ControlBuilderAttribute.cs
- XamlTemplateSerializer.cs
- FrameDimension.cs
- ObjectCloneHelper.cs
- Point3D.cs
- ForceCopyBuildProvider.cs
- ArrayTypeMismatchException.cs
- ScrollItemPattern.cs
- IgnoreDeviceFilterElement.cs
- KoreanLunisolarCalendar.cs
- Point3DValueSerializer.cs
- Trace.cs
- SemanticBasicElement.cs
- Msec.cs
- Message.cs
- CodeTypeParameter.cs
- KnownTypeHelper.cs
- Table.cs
- OutOfProcStateClientManager.cs
- ResourceDisplayNameAttribute.cs
- GifBitmapEncoder.cs
- CompiledQuery.cs
- DataGridViewControlCollection.cs
- SafeEventHandle.cs
- WebBrowserSiteBase.cs
- ReadOnlyDataSourceView.cs
- ItemsChangedEventArgs.cs
- BitmapEffectState.cs
- NameTable.cs
- TreeNodeStyle.cs
- WorkflowInstanceQuery.cs
- HashUtility.cs
- UriWriter.cs
- StateBag.cs
- CannotUnloadAppDomainException.cs
- TextTreeInsertUndoUnit.cs
- DataProtectionSecurityStateEncoder.cs
- ItemDragEvent.cs
- PropVariant.cs
- TimelineGroup.cs
- FormattedText.cs
- Module.cs
- RegistryConfigurationProvider.cs
- DataRowCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- SkipStoryboardToFill.cs
- EDesignUtil.cs
- DataListItemCollection.cs
- ClientCredentialsSecurityTokenManager.cs
- ContextQuery.cs
- XDeferredAxisSource.cs
- SiteMapNode.cs
- DataChangedEventManager.cs
- XpsResource.cs
- ObjectToIdCache.cs
- PassportIdentity.cs
- ScrollProviderWrapper.cs
- WebPartCollection.cs
- TraceContextRecord.cs
- Timeline.cs
- PanelStyle.cs
- InputProcessorProfiles.cs
- Unit.cs
- ResourcePermissionBase.cs
- ComplexObject.cs
- ResolvedKeyFrameEntry.cs
- Exceptions.cs
- AutomationAttributeInfo.cs
- oledbconnectionstring.cs
- TypeToken.cs
- BindingOperations.cs
- SubclassTypeValidator.cs
- ListDictionaryInternal.cs
- TracedNativeMethods.cs
- SqlDataSourceAdvancedOptionsForm.cs