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
- TextModifier.cs
- BasicExpressionVisitor.cs
- DiffuseMaterial.cs
- ContextMenu.cs
- DataGridTable.cs
- _ConnectionGroup.cs
- PropertyChangeTracker.cs
- MdImport.cs
- TextCompositionEventArgs.cs
- ApplicationInfo.cs
- SqlMethodAttribute.cs
- InvokeSchedule.cs
- DataAdapter.cs
- XXXOnTypeBuilderInstantiation.cs
- MsmqIntegrationMessageProperty.cs
- BindingCollection.cs
- BuiltInExpr.cs
- URL.cs
- EntryIndex.cs
- Renderer.cs
- SettingsPropertyIsReadOnlyException.cs
- RelationshipDetailsRow.cs
- DocumentGridPage.cs
- RootBrowserWindow.cs
- UInt64Converter.cs
- TextCollapsingProperties.cs
- PlacementWorkspace.cs
- OletxResourceManager.cs
- UIElementParagraph.cs
- CodeTypeConstructor.cs
- WriteTimeStream.cs
- MetricEntry.cs
- ToolStripButton.cs
- UnsafeNativeMethods.cs
- SmiMetaData.cs
- CounterCreationData.cs
- TemplateNameScope.cs
- StorageMappingFragment.cs
- PartitionedDataSource.cs
- SoapSchemaMember.cs
- MemberProjectedSlot.cs
- DeclarativeCatalogPart.cs
- PermissionRequestEvidence.cs
- DataControlImageButton.cs
- LateBoundChannelParameterCollection.cs
- QueueException.cs
- DynamicFilter.cs
- EditorPartCollection.cs
- DbBuffer.cs
- ConfigXmlWhitespace.cs
- TextEmbeddedObject.cs
- QualifiedCellIdBoolean.cs
- ScriptResourceAttribute.cs
- ExtendedPropertyDescriptor.cs
- VoiceSynthesis.cs
- infer.cs
- TypeDependencyAttribute.cs
- MessageQueuePermission.cs
- ManifestResourceInfo.cs
- XmlSchema.cs
- ContractMapping.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- AppLevelCompilationSectionCache.cs
- Int64Storage.cs
- TextPenaltyModule.cs
- SynchronizedDispatch.cs
- CacheSection.cs
- XPathBinder.cs
- RadioButtonList.cs
- SafeArrayRankMismatchException.cs
- AlgoModule.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlMapping.cs
- ISAPIRuntime.cs
- Tokenizer.cs
- ScrollProperties.cs
- AnimationException.cs
- App.cs
- InputEventArgs.cs
- StrokeNodeOperations.cs
- CryptoHelper.cs
- Tablet.cs
- MsmqProcessProtocolHandler.cs
- ServiceReference.cs
- ConfigurationStrings.cs
- EventWaitHandle.cs
- CodeNamespaceImport.cs
- DesignerProperties.cs
- RegexCompilationInfo.cs
- UpdatePanelTrigger.cs
- CodeDefaultValueExpression.cs
- AesManaged.cs
- TargetFrameworkAttribute.cs
- TreeNodeBinding.cs
- NaturalLanguageHyphenator.cs
- ArgumentException.cs
- XNodeValidator.cs
- HostingPreferredMapPath.cs
- UseAttributeSetsAction.cs
- InfiniteTimeSpanConverter.cs