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
- OdbcConnectionOpen.cs
- GroupBox.cs
- ScrollItemProviderWrapper.cs
- HebrewNumber.cs
- XmlSecureResolver.cs
- LinqDataSourceInsertEventArgs.cs
- InputScope.cs
- DynamicArgumentDesigner.xaml.cs
- DesignTimeVisibleAttribute.cs
- HotSpot.cs
- InkCanvasAutomationPeer.cs
- Animatable.cs
- EventListenerClientSide.cs
- AdapterUtil.cs
- SurrogateEncoder.cs
- MbpInfo.cs
- RecommendedAsConfigurableAttribute.cs
- Queue.cs
- X509PeerCertificateAuthentication.cs
- ConstructorExpr.cs
- documentsequencetextview.cs
- SystemUnicastIPAddressInformation.cs
- SmtpClient.cs
- FormatSettings.cs
- OleDbDataAdapter.cs
- UnitySerializationHolder.cs
- querybuilder.cs
- ObservableDictionary.cs
- ThreadStartException.cs
- TypeResolver.cs
- ClusterRegistryConfigurationProvider.cs
- wpf-etw.cs
- TypeGeneratedEventArgs.cs
- SoapReflectionImporter.cs
- ReadOnlyDictionary.cs
- ConfigXmlAttribute.cs
- XmlDataContract.cs
- webeventbuffer.cs
- PrintPreviewDialog.cs
- Descriptor.cs
- InputLanguageProfileNotifySink.cs
- MatrixStack.cs
- HttpListenerRequest.cs
- WebConfigurationHost.cs
- WmiPutTraceRecord.cs
- RepeatButtonAutomationPeer.cs
- DecimalAverageAggregationOperator.cs
- WorkflowWebService.cs
- ChannelManagerHelpers.cs
- ServicePointManager.cs
- RefExpr.cs
- TabControl.cs
- ByteFacetDescriptionElement.cs
- RelationshipType.cs
- ScriptControl.cs
- AdRotator.cs
- SafeArchiveContext.cs
- WebPartPersonalization.cs
- CodeBlockBuilder.cs
- InternalUserCancelledException.cs
- SqlConnectionPoolProviderInfo.cs
- SerializationHelper.cs
- SQLRoleProvider.cs
- MetaChildrenColumn.cs
- AuthenticationModulesSection.cs
- RegexNode.cs
- IgnoreFlushAndCloseStream.cs
- CompositeFontParser.cs
- XmlILStorageConverter.cs
- OutputCacheSettingsSection.cs
- IsolationInterop.cs
- SettingsPropertyValue.cs
- EntityDesignerUtils.cs
- ListControl.cs
- DbDataAdapter.cs
- LocalClientSecuritySettings.cs
- XmlArrayAttribute.cs
- EventMap.cs
- EntityKey.cs
- UserControlFileEditor.cs
- _FtpControlStream.cs
- ListDictionaryInternal.cs
- XmlEncodedRawTextWriter.cs
- GetPageNumberCompletedEventArgs.cs
- TranslateTransform3D.cs
- CombinedGeometry.cs
- ScriptControlManager.cs
- ToolStripSettings.cs
- ImplicitInputBrush.cs
- Utilities.cs
- UnauthorizedAccessException.cs
- IPHostEntry.cs
- SetterBaseCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- PersonalizationStateInfo.cs
- COM2AboutBoxPropertyDescriptor.cs
- CommentEmitter.cs
- _SingleItemRequestCache.cs
- DescendantBaseQuery.cs
- DataGridTablesFactory.cs