Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / RecommendedAsConfigurableAttribute.cs / 1 / 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; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsMenu.cs
- DiscoveryClientReferences.cs
- SQLSingleStorage.cs
- Int32Rect.cs
- MobileTemplatedControlDesigner.cs
- LocatorPart.cs
- SqlUtil.cs
- XmlCDATASection.cs
- ScriptRegistrationManager.cs
- ParenthesizePropertyNameAttribute.cs
- LocationSectionRecord.cs
- SqlGenerator.cs
- MobileTextWriter.cs
- GeneratedView.cs
- TemplatePropertyEntry.cs
- ExtendedPropertyCollection.cs
- OutOfMemoryException.cs
- CapabilitiesUse.cs
- URLString.cs
- MissingSatelliteAssemblyException.cs
- ExpressionParser.cs
- SplineKeyFrames.cs
- OperationInvokerTrace.cs
- UIntPtr.cs
- FixedHighlight.cs
- XmlEntityReference.cs
- EnumerableRowCollectionExtensions.cs
- EntityDescriptor.cs
- OdbcFactory.cs
- ArrangedElement.cs
- Msec.cs
- RoamingStoreFile.cs
- JumpList.cs
- ParamArrayAttribute.cs
- AggregateException.cs
- HttpHandlerAction.cs
- SystemDiagnosticsSection.cs
- BasicExpandProvider.cs
- BaseCAMarshaler.cs
- PixelFormatConverter.cs
- DataListItemCollection.cs
- DynamicEntity.cs
- Encoding.cs
- SyndicationDeserializer.cs
- Sql8ExpressionRewriter.cs
- DiagnosticStrings.cs
- ConnectionInterfaceCollection.cs
- CrossAppDomainChannel.cs
- SafeMILHandle.cs
- SrgsRuleRef.cs
- DataFormats.cs
- InvalidComObjectException.cs
- DataServiceQueryProvider.cs
- NotifyInputEventArgs.cs
- ConfigurationManagerHelper.cs
- HtmlPageAdapter.cs
- MetadataArtifactLoaderCompositeResource.cs
- AttributeEmitter.cs
- WebPartDisplayModeEventArgs.cs
- ArraySegment.cs
- NCryptNative.cs
- TemplateControlCodeDomTreeGenerator.cs
- CodeCommentStatementCollection.cs
- WebRequestModulesSection.cs
- Serializer.cs
- PrintingPermissionAttribute.cs
- SafePEFileHandle.cs
- Positioning.cs
- WebPartEditorApplyVerb.cs
- BlurEffect.cs
- CodeAccessPermission.cs
- Simplifier.cs
- DynamicEntity.cs
- OdbcEnvironmentHandle.cs
- Rect.cs
- SaveFileDialog.cs
- designeractionlistschangedeventargs.cs
- GridViewRowPresenter.cs
- DockAndAnchorLayout.cs
- SparseMemoryStream.cs
- DynamicMethod.cs
- CompoundFileDeflateTransform.cs
- XmlUtilWriter.cs
- DbBuffer.cs
- LocatorGroup.cs
- Classification.cs
- TransformGroup.cs
- ServiceNameCollection.cs
- PartialTrustHelpers.cs
- CodeDirectionExpression.cs
- DurationConverter.cs
- _LocalDataStore.cs
- ColumnWidthChangingEvent.cs
- PartManifestEntry.cs
- ReferentialConstraint.cs
- ServiceNotStartedException.cs
- ListViewItem.cs
- LinearQuaternionKeyFrame.cs
- MenuBase.cs
- DESCryptoServiceProvider.cs