Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TextBoxLine.cs
- WorkflowInlining.cs
- SecureStringHasher.cs
- Privilege.cs
- BoundingRectTracker.cs
- NamespaceDecl.cs
- BCryptHashAlgorithm.cs
- ToolStripProgressBar.cs
- LoginName.cs
- FixedFindEngine.cs
- DetailsViewUpdateEventArgs.cs
- DataSourceDescriptorCollection.cs
- mda.cs
- GridViewPageEventArgs.cs
- AsymmetricKeyExchangeDeformatter.cs
- XslVisitor.cs
- StatusBarAutomationPeer.cs
- ActivitiesCollection.cs
- PolicyManager.cs
- WebUtility.cs
- GridViewEditEventArgs.cs
- EmissiveMaterial.cs
- XsdBuilder.cs
- URLIdentityPermission.cs
- RemoteWebConfigurationHostStream.cs
- SmiSettersStream.cs
- ExitEventArgs.cs
- FontUnitConverter.cs
- HotCommands.cs
- AspNetPartialTrustHelpers.cs
- basecomparevalidator.cs
- RepeaterItemCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- CacheVirtualItemsEvent.cs
- OdbcDataReader.cs
- HtmlButton.cs
- _ListenerAsyncResult.cs
- AccessText.cs
- IdnMapping.cs
- EventSource.cs
- Signature.cs
- ValidatorCollection.cs
- WebPartDescriptionCollection.cs
- ResourceDescriptionAttribute.cs
- PipelineModuleStepContainer.cs
- UnrecognizedAssertionsBindingElement.cs
- ContentValidator.cs
- FieldAccessException.cs
- TextEditorCopyPaste.cs
- SecurityContext.cs
- SwitchLevelAttribute.cs
- TreeView.cs
- RelOps.cs
- ImageListStreamer.cs
- Queue.cs
- InfoCardBaseException.cs
- AnnotationDocumentPaginator.cs
- AddInContractAttribute.cs
- TabItemAutomationPeer.cs
- ProofTokenCryptoHandle.cs
- Cloud.cs
- SystemFonts.cs
- WebInvokeAttribute.cs
- PackageProperties.cs
- Maps.cs
- MailAddress.cs
- SiteMapNodeItemEventArgs.cs
- X509Utils.cs
- TitleStyle.cs
- DescriptionAttribute.cs
- ResolveNameEventArgs.cs
- DateRangeEvent.cs
- ResourceProviderFactory.cs
- MappingMetadataHelper.cs
- GridItemCollection.cs
- _ListenerRequestStream.cs
- ReferenceEqualityComparer.cs
- remotingproxy.cs
- ProfileEventArgs.cs
- XmlTextWriter.cs
- GlobalEventManager.cs
- ChildrenQuery.cs
- ConnectionManagementSection.cs
- CheckBoxStandardAdapter.cs
- HyperLinkStyle.cs
- RoleManagerSection.cs
- GlyphRunDrawing.cs
- WindowsToolbarAsMenu.cs
- GlobalizationAssembly.cs
- Int64Converter.cs
- BuildProvider.cs
- HeaderCollection.cs
- PermissionSet.cs
- PeerNeighborManager.cs
- PasswordTextNavigator.cs
- LinkedList.cs
- EmptyControlCollection.cs
- SourceLineInfo.cs
- GeneralTransform.cs
- DetailsViewUpdatedEventArgs.cs