Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- UnauthorizedAccessException.cs
- DataGridParentRows.cs
- KeyInstance.cs
- SystemFonts.cs
- HtmlPanelAdapter.cs
- Timer.cs
- AddingNewEventArgs.cs
- SelectionListComponentEditor.cs
- SubtreeProcessor.cs
- ApplicationTrust.cs
- LogRecordSequence.cs
- UriParserTemplates.cs
- XPathQilFactory.cs
- EdmConstants.cs
- __Filters.cs
- Stream.cs
- Int32Converter.cs
- DescendantOverDescendantQuery.cs
- safex509handles.cs
- StatusBar.cs
- _CommandStream.cs
- UpdatePanelControlTrigger.cs
- EvidenceBase.cs
- RuntimeHelpers.cs
- UserPreferenceChangingEventArgs.cs
- ConfigXmlWhitespace.cs
- LogRecordSequence.cs
- NameSpaceExtractor.cs
- DataRowChangeEvent.cs
- FormViewModeEventArgs.cs
- FixedSOMPage.cs
- BooleanStorage.cs
- MobileControlPersister.cs
- UIElement.cs
- ContextDataSourceView.cs
- ReliableMessagingVersion.cs
- WebPart.cs
- DateTimeConstantAttribute.cs
- WebPartDescription.cs
- AssertSection.cs
- basevalidator.cs
- documentsequencetextpointer.cs
- DisplayInformation.cs
- ProtocolViolationException.cs
- XPathBinder.cs
- WriteLineDesigner.xaml.cs
- Model3D.cs
- MappingItemCollection.cs
- TimeSpanFormat.cs
- XPathParser.cs
- SoapMessage.cs
- SerializationFieldInfo.cs
- HtmlForm.cs
- BasicExpressionVisitor.cs
- RtfToXamlLexer.cs
- CredentialCache.cs
- BitmapEffectOutputConnector.cs
- BrowsableAttribute.cs
- Region.cs
- SimpleModelProvider.cs
- EventLogPermissionEntry.cs
- XmlAtomErrorReader.cs
- HtmlMeta.cs
- ContentControl.cs
- DataService.cs
- OlePropertyStructs.cs
- FlowNode.cs
- NavigationHelper.cs
- HelpKeywordAttribute.cs
- ServiceModelReg.cs
- DocComment.cs
- SelfSignedCertificate.cs
- TypedColumnHandler.cs
- GCHandleCookieTable.cs
- ThreadStartException.cs
- UpDownBase.cs
- FacetEnabledSchemaElement.cs
- ParallelTimeline.cs
- BinaryFormatter.cs
- XmlSchemaValidator.cs
- ResXResourceReader.cs
- TextTreeNode.cs
- Message.cs
- HtmlSelect.cs
- SizeAnimationClockResource.cs
- CodeCompiler.cs
- TcpServerChannel.cs
- HostVisual.cs
- UserControl.cs
- Quaternion.cs
- DataGridItemAutomationPeer.cs
- WorkflowApplicationEventArgs.cs
- httpstaticobjectscollection.cs
- recordstatefactory.cs
- AuthenticationConfig.cs
- RecognizerStateChangedEventArgs.cs
- XsltArgumentList.cs
- CompiledQuery.cs
- ProviderException.cs
- ObjectListField.cs