Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DetailsViewUpdateEventArgs.cs
- BaseValidator.cs
- DocumentPaginator.cs
- _FtpControlStream.cs
- StreamReader.cs
- XmlTypeMapping.cs
- InstanceNotReadyException.cs
- ColorAnimationBase.cs
- GridEntry.cs
- LinkLabelLinkClickedEvent.cs
- SmtpDigestAuthenticationModule.cs
- EdmError.cs
- Logging.cs
- NamespaceListProperty.cs
- CSharpCodeProvider.cs
- EdmProperty.cs
- BeginEvent.cs
- BitmapEffectGroup.cs
- BookmarkScope.cs
- Action.cs
- Size3D.cs
- WebConfigurationManager.cs
- TemplateComponentConnector.cs
- AppDomainCompilerProxy.cs
- NonParentingControl.cs
- RowUpdatingEventArgs.cs
- ListChangedEventArgs.cs
- HwndMouseInputProvider.cs
- OpenFileDialog.cs
- ComponentResourceManager.cs
- SiteMapHierarchicalDataSourceView.cs
- Attribute.cs
- DefaultWorkflowTransactionService.cs
- GlobalEventManager.cs
- MD5.cs
- CodeMemberProperty.cs
- StyleSelector.cs
- RequestQueryProcessor.cs
- NonSerializedAttribute.cs
- SplitContainer.cs
- RuntimeEnvironment.cs
- UpdatePanelControlTrigger.cs
- SQLDoubleStorage.cs
- XmlTextReaderImpl.cs
- Int16AnimationBase.cs
- CompressedStack.cs
- DataGridViewRowCancelEventArgs.cs
- EventRouteFactory.cs
- QilParameter.cs
- AssemblyFilter.cs
- DragEventArgs.cs
- Solver.cs
- OleDbConnectionInternal.cs
- RegexFCD.cs
- ToolStripSplitStackLayout.cs
- DataGridColumnCollection.cs
- HttpClientChannel.cs
- DataGridViewColumnConverter.cs
- ValueUnavailableException.cs
- VisualCollection.cs
- PathNode.cs
- BaseValidator.cs
- ApplicationGesture.cs
- MsdtcWrapper.cs
- WebBrowserSiteBase.cs
- ContextStack.cs
- CodeTryCatchFinallyStatement.cs
- NonParentingControl.cs
- TableLayoutStyleCollection.cs
- AspCompat.cs
- DrawingImage.cs
- Metadata.cs
- OptimisticConcurrencyException.cs
- PropertyMetadata.cs
- ReturnEventArgs.cs
- DataControlPagerLinkButton.cs
- SchemaImporterExtensionElement.cs
- ProxyWebPart.cs
- ObjectItemAttributeAssemblyLoader.cs
- XhtmlBasicLabelAdapter.cs
- EntityDataSourceDesignerHelper.cs
- ApplicationDirectoryMembershipCondition.cs
- WebBrowserBase.cs
- DbConnectionPoolGroup.cs
- SafeViewOfFileHandle.cs
- XmlReturnWriter.cs
- XPathNodeInfoAtom.cs
- XmlSchemaAttributeGroup.cs
- QuaternionConverter.cs
- Stackframe.cs
- FilteredReadOnlyMetadataCollection.cs
- VisualTransition.cs
- _ListenerAsyncResult.cs
- SimpleLine.cs
- UserControlCodeDomTreeGenerator.cs
- TableItemProviderWrapper.cs
- _NtlmClient.cs
- SerializerProvider.cs
- CfgSemanticTag.cs
- TableLayoutSettings.cs