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
- webclient.cs
- WebPartVerbsEventArgs.cs
- BaseCodePageEncoding.cs
- ConditionalAttribute.cs
- PTUtility.cs
- _ListenerAsyncResult.cs
- DataRow.cs
- HTMLTagNameToTypeMapper.cs
- QueryAccessibilityHelpEvent.cs
- DefaultAsyncDataDispatcher.cs
- CryptoKeySecurity.cs
- VisualBasicImportReference.cs
- UserControl.cs
- IsolatedStorage.cs
- DateBoldEvent.cs
- TraceUtility.cs
- Span.cs
- EntityDesignerBuildProvider.cs
- FontStyleConverter.cs
- BitmapSourceSafeMILHandle.cs
- ButtonChrome.cs
- GPPOINT.cs
- X509RawDataKeyIdentifierClause.cs
- Binding.cs
- ThemeableAttribute.cs
- PenLineJoinValidation.cs
- PageCatalogPart.cs
- CorePropertiesFilter.cs
- DataRelationPropertyDescriptor.cs
- CompiledQueryCacheEntry.cs
- WindowsScrollBarBits.cs
- ListChangedEventArgs.cs
- CodeGen.cs
- TemplateControlParser.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Thread.cs
- CodeAttributeDeclaration.cs
- CopyAction.cs
- AggregateNode.cs
- Thickness.cs
- CssStyleCollection.cs
- SchemaImporterExtension.cs
- ErrorWebPart.cs
- SafeNativeMethods.cs
- NetworkInterface.cs
- HtmlInputPassword.cs
- X509WindowsSecurityToken.cs
- NodeLabelEditEvent.cs
- Win32.cs
- DataObjectMethodAttribute.cs
- WorkflowDesigner.cs
- NativeMethodsCLR.cs
- AnnotationHighlightLayer.cs
- AssociationSet.cs
- UrlPath.cs
- MDIControlStrip.cs
- FeatureSupport.cs
- CodeGenerator.cs
- CalendarDateChangedEventArgs.cs
- AuthStoreRoleProvider.cs
- NameValueFileSectionHandler.cs
- ToolStripSeparator.cs
- MaskDescriptor.cs
- TypeValidationEventArgs.cs
- QuaternionAnimationBase.cs
- UserInitiatedNavigationPermission.cs
- XmlAttributeProperties.cs
- BitmapFrame.cs
- CmsUtils.cs
- PixelFormat.cs
- HwndKeyboardInputProvider.cs
- IsolatedStorageFilePermission.cs
- ControlCollection.cs
- SimpleApplicationHost.cs
- ParentQuery.cs
- CryptoApi.cs
- RuleConditionDialog.cs
- ResourceDescriptionAttribute.cs
- PackWebRequestFactory.cs
- GraphicsPathIterator.cs
- TextTreeRootNode.cs
- XXXInfos.cs
- MailSettingsSection.cs
- TextFormatterHost.cs
- SqlServer2KCompatibilityAnnotation.cs
- SqlInternalConnectionSmi.cs
- IApplicationTrustManager.cs
- DependencyPropertyKind.cs
- TableLayoutColumnStyleCollection.cs
- MenuItem.cs
- Oid.cs
- WebPartUserCapability.cs
- HandleCollector.cs
- TemplateControl.cs
- SelectionGlyph.cs
- TargetControlTypeCache.cs
- GlyphingCache.cs
- ModelItemCollection.cs
- Mutex.cs
- ChtmlSelectionListAdapter.cs