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
- XPathException.cs
- NavigatorInput.cs
- BasicExpressionVisitor.cs
- PresentationSource.cs
- PointCollection.cs
- BamlRecordWriter.cs
- SmiXetterAccessMap.cs
- TimeZoneInfo.cs
- ConnectionPointGlyph.cs
- ScrollPatternIdentifiers.cs
- ControlCachePolicy.cs
- TextElementCollection.cs
- ObjRef.cs
- EncodingDataItem.cs
- HttpRuntime.cs
- ProviderBase.cs
- RawStylusSystemGestureInputReport.cs
- InvalidateEvent.cs
- PointConverter.cs
- MarkupExtensionReturnTypeAttribute.cs
- SolidColorBrush.cs
- CurrencyManager.cs
- TransactionScopeDesigner.cs
- ResourceDictionaryCollection.cs
- LabelTarget.cs
- KeyGesture.cs
- NavigationFailedEventArgs.cs
- SchemaSetCompiler.cs
- WrapPanel.cs
- Journaling.cs
- TextEditorMouse.cs
- EllipseGeometry.cs
- PromptStyle.cs
- TrailingSpaceComparer.cs
- ConsoleCancelEventArgs.cs
- ThaiBuddhistCalendar.cs
- ReflectionPermission.cs
- SRDisplayNameAttribute.cs
- SafeSecurityHandles.cs
- EventDescriptor.cs
- StackOverflowException.cs
- UnsafeNativeMethodsPenimc.cs
- HtmlInputPassword.cs
- TextDataBindingHandler.cs
- XmlLoader.cs
- OptimizedTemplateContent.cs
- AuthenticatedStream.cs
- DataGridViewCellValueEventArgs.cs
- HandledMouseEvent.cs
- ICspAsymmetricAlgorithm.cs
- ParsedAttributeCollection.cs
- CodeEventReferenceExpression.cs
- TreeNodeBinding.cs
- MemoryPressure.cs
- Tokenizer.cs
- DrawingState.cs
- DotExpr.cs
- ComponentConverter.cs
- CommandID.cs
- MultiBinding.cs
- StreamingContext.cs
- GuidelineSet.cs
- ExpressionCopier.cs
- EdmEntityTypeAttribute.cs
- FormatConvertedBitmap.cs
- DataError.cs
- WebPartVerbsEventArgs.cs
- ToolBar.cs
- Validator.cs
- RuntimeHelpers.cs
- SafeLibraryHandle.cs
- FileLoadException.cs
- ChtmlLinkAdapter.cs
- XmlIncludeAttribute.cs
- ElementNotEnabledException.cs
- XPathSelfQuery.cs
- DataBinder.cs
- SQLStringStorage.cs
- DateTimeOffsetConverter.cs
- SerializationHelper.cs
- ExternalCalls.cs
- RichListBox.cs
- SoapCodeExporter.cs
- FontDialog.cs
- TypeUtil.cs
- ApplicationSecurityInfo.cs
- StyleCollection.cs
- CompositeControl.cs
- ImmutableObjectAttribute.cs
- StringValidatorAttribute.cs
- HttpGetClientProtocol.cs
- indexingfiltermarshaler.cs
- FusionWrap.cs
- EntityUtil.cs
- StrongNamePublicKeyBlob.cs
- TextServicesCompartmentContext.cs
- ProcessModuleCollection.cs
- PropertyValueChangedEvent.cs
- DbUpdateCommandTree.cs
- Queue.cs