Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- AnnotationMap.cs
- GuidConverter.cs
- CodeEventReferenceExpression.cs
- CornerRadiusConverter.cs
- SqlTransaction.cs
- ModuleElement.cs
- DoubleLinkList.cs
- TypeBuilderInstantiation.cs
- SystemKeyConverter.cs
- SyndicationSerializer.cs
- MimeMapping.cs
- AppearanceEditorPart.cs
- MLangCodePageEncoding.cs
- DynamicActivityTypeDescriptor.cs
- EntityDesignPluralizationHandler.cs
- StoreAnnotationsMap.cs
- DetailsViewPageEventArgs.cs
- ExplicitDiscriminatorMap.cs
- SapiGrammar.cs
- IgnoreFlushAndCloseStream.cs
- Cell.cs
- MultiSelectRootGridEntry.cs
- CategoriesDocument.cs
- ColorConvertedBitmapExtension.cs
- Int32Converter.cs
- _FtpControlStream.cs
- Label.cs
- DefaultAutoFieldGenerator.cs
- ListBoxItemAutomationPeer.cs
- WebPartAuthorizationEventArgs.cs
- _HeaderInfo.cs
- TypeValidationEventArgs.cs
- AspNetSynchronizationContext.cs
- DataGridViewBand.cs
- MobileTextWriter.cs
- RecommendedAsConfigurableAttribute.cs
- RemoteWebConfigurationHost.cs
- ValuePattern.cs
- StoreItemCollection.cs
- CorrelationQueryBehavior.cs
- IteratorDescriptor.cs
- MexTcpBindingElement.cs
- IfAction.cs
- Visual3DCollection.cs
- RawContentTypeMapper.cs
- OutputScope.cs
- ConstructorNeedsTagAttribute.cs
- EntityDataSourceContextCreatingEventArgs.cs
- ParserExtension.cs
- ViewManager.cs
- LogExtent.cs
- MouseEvent.cs
- DictionaryManager.cs
- ObjectListComponentEditor.cs
- SystemParameters.cs
- EntityStoreSchemaFilterEntry.cs
- BooleanConverter.cs
- QueryGeneratorBase.cs
- AuthenticationModuleElement.cs
- DetailsView.cs
- FontNameConverter.cs
- SchemaElement.cs
- MsmqTransportElement.cs
- TreeView.cs
- LocalValueEnumerator.cs
- SparseMemoryStream.cs
- QueryOutputWriter.cs
- RetrieveVirtualItemEventArgs.cs
- BindingObserver.cs
- EntityCommand.cs
- ToolStripDropTargetManager.cs
- SingleQueryOperator.cs
- SoapAttributes.cs
- CalendarDataBindingHandler.cs
- MetaModel.cs
- UserControlBuildProvider.cs
- SafeNativeMethods.cs
- DetailsViewRow.cs
- PopupRootAutomationPeer.cs
- PerformanceCounterPermissionAttribute.cs
- BinaryObjectWriter.cs
- EntryPointNotFoundException.cs
- LinkButton.cs
- SchemaComplexType.cs
- PassportAuthenticationEventArgs.cs
- Monitor.cs
- FieldNameLookup.cs
- ExpressionCopier.cs
- InitializationEventAttribute.cs
- DeadCharTextComposition.cs
- InheritanceAttribute.cs
- Utilities.cs
- XPathAncestorIterator.cs
- SafeHandles.cs
- FixedFindEngine.cs
- ExpressionLexer.cs
- WebSysDisplayNameAttribute.cs
- OdbcConnectionString.cs
- DynamicRouteExpression.cs
- OrthographicCamera.cs