Code:
/ DotNET / DotNET / 8.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
- ObjectView.cs
- HeaderLabel.cs
- MediaContextNotificationWindow.cs
- HttpAsyncResult.cs
- XmlHelper.cs
- TextElementEditingBehaviorAttribute.cs
- SafeViewOfFileHandle.cs
- MouseGestureValueSerializer.cs
- Helpers.cs
- ShimAsPublicXamlType.cs
- Condition.cs
- BindingExpressionUncommonField.cs
- DataServiceClientException.cs
- Decoder.cs
- HwndSubclass.cs
- ResourceAssociationTypeEnd.cs
- GenericAuthenticationEventArgs.cs
- followingsibling.cs
- IntegerCollectionEditor.cs
- AddInContractAttribute.cs
- ViewCellRelation.cs
- NavigateEvent.cs
- ConstraintCollection.cs
- DecoderFallbackWithFailureFlag.cs
- GridViewColumn.cs
- GcHandle.cs
- ChtmlPhoneCallAdapter.cs
- UniqueIdentifierService.cs
- PenContexts.cs
- parserscommon.cs
- DependencyObject.cs
- XmlDataProvider.cs
- WebServiceHandler.cs
- UriScheme.cs
- ConnectionPoolManager.cs
- DataGrid.cs
- GroupStyle.cs
- RegexRunner.cs
- RSAOAEPKeyExchangeFormatter.cs
- StaticExtensionConverter.cs
- DynamicResourceExtensionConverter.cs
- UserPersonalizationStateInfo.cs
- AnnotationComponentManager.cs
- CookielessData.cs
- TextBlockAutomationPeer.cs
- SpecialFolderEnumConverter.cs
- OdbcConnectionStringbuilder.cs
- ModelTreeEnumerator.cs
- Matrix.cs
- EditorPart.cs
- ListViewHitTestInfo.cs
- DataGridViewCellFormattingEventArgs.cs
- IisTraceWebEventProvider.cs
- FormsAuthenticationEventArgs.cs
- ChannelManagerBase.cs
- SqlDataSourceCommandEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- COM2ExtendedBrowsingHandler.cs
- ValidationResult.cs
- EnumUnknown.cs
- SqlRowUpdatedEvent.cs
- TemplateEditingFrame.cs
- HtmlFormParameterReader.cs
- UserControlDesigner.cs
- File.cs
- DataGrid.cs
- StringDictionaryCodeDomSerializer.cs
- XmlSchemaIdentityConstraint.cs
- ResourceAssociationTypeEnd.cs
- TempFiles.cs
- DocumentViewerConstants.cs
- SpeechUI.cs
- StrokeNodeOperations.cs
- XamlStyleSerializer.cs
- BitVector32.cs
- TdsParser.cs
- COAUTHIDENTITY.cs
- DocumentSchemaValidator.cs
- SqlUDTStorage.cs
- ToolboxComponentsCreatingEventArgs.cs
- ResourceDescriptionAttribute.cs
- TextEditorSpelling.cs
- HijriCalendar.cs
- TreeNodeCollection.cs
- PenContexts.cs
- ParserHooks.cs
- ObjectDataSourceEventArgs.cs
- DesignerAttribute.cs
- DataSetSchema.cs
- WinFormsSecurity.cs
- EncoderParameter.cs
- Button.cs
- TextRangeEditLists.cs
- HostedElements.cs
- ProfileParameter.cs
- InvocationExpression.cs
- SectionXmlInfo.cs
- ManagementDateTime.cs
- _NegoStream.cs
- ServiceObjectContainer.cs