Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RecommendedAsConfigurableAttribute.cs / 1305376 / RecommendedAsConfigurableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")] public class RecommendedAsConfigurableAttribute : Attribute { private bool recommendedAsConfigurable = false; ///Specifies that the property can be /// used as an application setting. ////// public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) { this.recommendedAsConfigurable = recommendedAsConfigurable; } ////// Initializes a new instance of /// the ///class. /// /// public bool RecommendedAsConfigurable { get { return recommendedAsConfigurable; } } ///Gets a value indicating whether the property this /// attribute is bound to can be used as an application setting. ////// public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false); ////// Specifies that a property cannot be used as an application setting. This /// ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true); ////// Specifies /// that a property can be used as an application setting. This ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Default = No; ////// Specifies the default value for the ///, which is . This field is /// read-only. /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute; return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// public override bool IsDefaultAttribute() { return !recommendedAsConfigurable; } } } // 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
- TextEditorParagraphs.cs
- RegisteredArrayDeclaration.cs
- FileRecordSequence.cs
- XamlHostingSectionGroup.cs
- ActivityMarkupSerializationProvider.cs
- SqlDataSourceEnumerator.cs
- _NegoState.cs
- KeyboardNavigation.cs
- GeometryConverter.cs
- EntityContainerAssociationSet.cs
- XamlFilter.cs
- VisualTarget.cs
- TemplateEditingService.cs
- SecurityContextSecurityTokenParameters.cs
- OlePropertyStructs.cs
- XsdBuildProvider.cs
- InteropBitmapSource.cs
- SymbolDocumentInfo.cs
- CacheHelper.cs
- TemplateApplicationHelper.cs
- Int64.cs
- SoapFaultCodes.cs
- TraceHandlerErrorFormatter.cs
- KeyEvent.cs
- _AutoWebProxyScriptHelper.cs
- UidManager.cs
- BinHexEncoder.cs
- CodeIterationStatement.cs
- PaintEvent.cs
- ISessionStateStore.cs
- FrameworkElementFactory.cs
- GACIdentityPermission.cs
- HttpListenerContext.cs
- FreezableCollection.cs
- XamlPointCollectionSerializer.cs
- XmlSchemaSimpleTypeUnion.cs
- _SpnDictionary.cs
- IntegerValidatorAttribute.cs
- RealizedColumnsBlock.cs
- TextEndOfLine.cs
- SelectionEditingBehavior.cs
- ConfigurationException.cs
- Regex.cs
- PageContentCollection.cs
- DataServiceRequestException.cs
- DbBuffer.cs
- ColorTranslator.cs
- QuotedPrintableStream.cs
- WebPartPersonalization.cs
- SqlProvider.cs
- TextEvent.cs
- FrameSecurityDescriptor.cs
- SerializationAttributes.cs
- DataGridColumnHeader.cs
- X509PeerCertificateAuthentication.cs
- BamlVersionHeader.cs
- SortKey.cs
- Metadata.cs
- PaperSize.cs
- DetailsViewDeleteEventArgs.cs
- BufferModeSettings.cs
- CompositeFontInfo.cs
- SafePointer.cs
- PageVisual.cs
- TypedRowHandler.cs
- TreeNodeCollection.cs
- PrintDialogException.cs
- XmlSchemaType.cs
- PolyBezierSegmentFigureLogic.cs
- NameTable.cs
- Console.cs
- InvalidDataContractException.cs
- sqlpipe.cs
- SslStreamSecurityElement.cs
- ContentPresenter.cs
- CreateRefExpr.cs
- CardSpaceSelector.cs
- InvalidateEvent.cs
- ChannelServices.cs
- TextDecorationUnitValidation.cs
- GatewayDefinition.cs
- NetNamedPipeBindingCollectionElement.cs
- ProgressChangedEventArgs.cs
- ActiveXHelper.cs
- TokenBasedSet.cs
- ProcessingInstructionAction.cs
- EdmProviderManifest.cs
- ResponseBodyWriter.cs
- XmlSchemaElement.cs
- BitmapDecoder.cs
- ViewStateException.cs
- XamlDesignerSerializationManager.cs
- DescriptionAttribute.cs
- ModelItemCollectionImpl.cs
- CngKey.cs
- Label.cs
- StorageMappingItemLoader.cs
- FtpWebRequest.cs
- SetIterators.cs
- SqlDataSourceView.cs