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
- ControlDesignerState.cs
- UnsafeNativeMethods.cs
- FragmentQueryKB.cs
- DescendentsWalkerBase.cs
- ImmutableObjectAttribute.cs
- StringExpressionSet.cs
- DataControlField.cs
- StaticSiteMapProvider.cs
- mactripleDES.cs
- StartUpEventArgs.cs
- Style.cs
- SimpleApplicationHost.cs
- DependentList.cs
- ResourceProperty.cs
- XslVisitor.cs
- StylusSystemGestureEventArgs.cs
- EditingCoordinator.cs
- Quaternion.cs
- MultiPageTextView.cs
- LongCountAggregationOperator.cs
- CodeIndexerExpression.cs
- SqlFacetAttribute.cs
- CodeTryCatchFinallyStatement.cs
- WbemException.cs
- counter.cs
- ItemsPanelTemplate.cs
- HatchBrush.cs
- UserControlDocumentDesigner.cs
- SizeChangedEventArgs.cs
- WeakReference.cs
- TerminatingOperationBehavior.cs
- TableColumnCollection.cs
- _TLSstream.cs
- Input.cs
- WebPermission.cs
- EntityDataSourceSelectingEventArgs.cs
- PartialArray.cs
- Misc.cs
- SnapLine.cs
- NameValueConfigurationCollection.cs
- XmlIgnoreAttribute.cs
- XmlSchemaDocumentation.cs
- TableColumn.cs
- SuppressMergeCheckAttribute.cs
- Command.cs
- Exception.cs
- XPathNodeInfoAtom.cs
- OletxTransactionHeader.cs
- MappingException.cs
- XmlDsigSep2000.cs
- ReadOnlyCollectionBase.cs
- ClientRoleProvider.cs
- ObjectQuery_EntitySqlExtensions.cs
- SystemFonts.cs
- BrushConverter.cs
- ClientTarget.cs
- Storyboard.cs
- RootBuilder.cs
- HashJoinQueryOperatorEnumerator.cs
- RelatedEnd.cs
- MessageQueuePermission.cs
- CompModHelpers.cs
- ToolStripSystemRenderer.cs
- FtpCachePolicyElement.cs
- Color.cs
- SpecularMaterial.cs
- Command.cs
- Model3DGroup.cs
- _NestedSingleAsyncResult.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ScriptReference.cs
- PageSetupDialog.cs
- Interlocked.cs
- Constants.cs
- AdapterSwitches.cs
- EventArgs.cs
- MILUtilities.cs
- ByteStorage.cs
- InvalidDataContractException.cs
- XmlSchemaSimpleTypeList.cs
- MaterialCollection.cs
- ScrollViewerAutomationPeer.cs
- ProjectionPath.cs
- PhysicalFontFamily.cs
- DataGridViewCellStyleConverter.cs
- Validator.cs
- ObjectQueryProvider.cs
- PropertyDescriptorComparer.cs
- FaultCode.cs
- BindingManagerDataErrorEventArgs.cs
- OracleString.cs
- Effect.cs
- PermissionSet.cs
- PageClientProxyGenerator.cs
- ObjectSelectorEditor.cs
- ClientBuildManager.cs
- _AutoWebProxyScriptWrapper.cs
- FormParameter.cs
- TextTreeRootTextBlock.cs
- XPathSingletonIterator.cs