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
- CommandConverter.cs
- DesignOnlyAttribute.cs
- MultitargetingHelpers.cs
- XmlBinaryReader.cs
- PreviewPageInfo.cs
- SchemaCollectionCompiler.cs
- SynchronizationLockException.cs
- SafeRightsManagementPubHandle.cs
- _LocalDataStoreMgr.cs
- DataObjectMethodAttribute.cs
- XmlSerializerSection.cs
- MemoryFailPoint.cs
- MetadataSerializer.cs
- CombinedGeometry.cs
- FontStyle.cs
- SubstitutionList.cs
- smtpconnection.cs
- X509RecipientCertificateClientElement.cs
- PersianCalendar.cs
- Win32PrintDialog.cs
- LineBreakRecord.cs
- RecommendedAsConfigurableAttribute.cs
- NumericUpDownAcceleration.cs
- RoleManagerEventArgs.cs
- RegionInfo.cs
- ObjectIDGenerator.cs
- SQLRoleProvider.cs
- EncoderFallback.cs
- Geometry.cs
- Int32Rect.cs
- XmlTextAttribute.cs
- SecurityPermission.cs
- XmlComment.cs
- SplitterCancelEvent.cs
- DmlSqlGenerator.cs
- SHA384.cs
- GridViewRowEventArgs.cs
- SqlMethodAttribute.cs
- PointUtil.cs
- UIntPtr.cs
- CalendarKeyboardHelper.cs
- XmlAnyAttributeAttribute.cs
- QilUnary.cs
- ContentHostHelper.cs
- OuterGlowBitmapEffect.cs
- WebPartConnectionsEventArgs.cs
- DataGridRowClipboardEventArgs.cs
- ContentElementAutomationPeer.cs
- IncrementalCompileAnalyzer.cs
- ChildTable.cs
- dsa.cs
- TextRangeEditLists.cs
- SchemaNotation.cs
- SeverityFilter.cs
- CrossContextChannel.cs
- ContainerSelectorActiveEvent.cs
- safelink.cs
- CodeNamespaceImportCollection.cs
- BindingWorker.cs
- ProcessExitedException.cs
- WebServiceBindingAttribute.cs
- LogicalMethodInfo.cs
- SystemResourceKey.cs
- DuplicateWaitObjectException.cs
- precedingsibling.cs
- Point3DCollection.cs
- IdentityReference.cs
- Baml6ConstructorInfo.cs
- FontSourceCollection.cs
- PageAsyncTaskManager.cs
- util.cs
- UserControl.cs
- StorageRoot.cs
- FixedMaxHeap.cs
- MenuItem.cs
- NaturalLanguageHyphenator.cs
- StrokeDescriptor.cs
- ExtenderControl.cs
- WebPartManager.cs
- DesignerCategoryAttribute.cs
- ThicknessKeyFrameCollection.cs
- DocumentApplicationJournalEntry.cs
- FormView.cs
- WebPartCloseVerb.cs
- PrintingPermissionAttribute.cs
- ReferencedType.cs
- ObjectContextServiceProvider.cs
- InvalidMessageContractException.cs
- DesignerToolStripControlHost.cs
- ActivityTypeResolver.xaml.cs
- TreeNodeCollectionEditor.cs
- SQLInt16Storage.cs
- _SafeNetHandles.cs
- TextServicesHost.cs
- FrameworkElementFactoryMarkupObject.cs
- PrinterSettings.cs
- ComponentConverter.cs
- TreeView.cs
- Renderer.cs
- SizeAnimationUsingKeyFrames.cs