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
- ArrayExtension.cs
- XmlNode.cs
- TransformValueSerializer.cs
- SystemKeyConverter.cs
- IItemProperties.cs
- WebScriptEnablingBehavior.cs
- WebEvents.cs
- XmlNodeComparer.cs
- ScopeElementCollection.cs
- DefaultSection.cs
- RowsCopiedEventArgs.cs
- SQLByte.cs
- EntityDataSourceStatementEditorForm.cs
- DatatypeImplementation.cs
- DesigntimeLicenseContext.cs
- RemotingConfiguration.cs
- SurrogateEncoder.cs
- HtmlTitle.cs
- TagMapCollection.cs
- MarkupCompilePass2.cs
- DateBoldEvent.cs
- Msmq4PoisonHandler.cs
- FrameworkTemplate.cs
- Identity.cs
- FixedBufferAttribute.cs
- WindowExtensionMethods.cs
- QilParameter.cs
- JournalEntry.cs
- ReachIDocumentPaginatorSerializer.cs
- OdbcReferenceCollection.cs
- BitmapEffectDrawingContent.cs
- CursorConverter.cs
- Boolean.cs
- DescendantBaseQuery.cs
- FamilyTypeface.cs
- XamlStream.cs
- EditorZoneBase.cs
- Knowncolors.cs
- StickyNoteAnnotations.cs
- DataConnectionHelper.cs
- WebConfigurationHostFileChange.cs
- VerificationAttribute.cs
- DataGridParentRows.cs
- BindableTemplateBuilder.cs
- SQLBytes.cs
- PathNode.cs
- SqlDataReaderSmi.cs
- DesignerListAdapter.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SerializationAttributes.cs
- FunctionGenerator.cs
- ProvidersHelper.cs
- PartialList.cs
- ServerProtocol.cs
- DirectoryRedirect.cs
- Matrix3DStack.cs
- PopOutPanel.cs
- OperationCanceledException.cs
- DynamicField.cs
- ButtonStandardAdapter.cs
- Formatter.cs
- ComponentSerializationService.cs
- PageAsyncTask.cs
- RefExpr.cs
- AmbientLight.cs
- DataGridViewRowConverter.cs
- DynamicRendererThreadManager.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- RowBinding.cs
- ErrorProvider.cs
- UIPermission.cs
- MenuEventArgs.cs
- HttpResponseWrapper.cs
- WebPartHelpVerb.cs
- InkCanvasSelection.cs
- SqlNodeAnnotation.cs
- Merger.cs
- HttpModulesSection.cs
- IndexerNameAttribute.cs
- TypeConverter.cs
- errorpatternmatcher.cs
- CopyAttributesAction.cs
- _SSPISessionCache.cs
- SqlNodeTypeOperators.cs
- TouchPoint.cs
- QilReplaceVisitor.cs
- OleCmdHelper.cs
- MetadataUtil.cs
- ArrayList.cs
- EventItfInfo.cs
- XmlC14NWriter.cs
- Rfc2898DeriveBytes.cs
- TimeoutValidationAttribute.cs
- StreamReader.cs
- Quad.cs
- EntityContainerEntitySetDefiningQuery.cs
- XmlSiteMapProvider.cs
- documentsequencetextcontainer.cs
- OrderedDictionary.cs
- DataMemberConverter.cs