Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlErrorCollection.cs
- ClosureBinding.cs
- DayRenderEvent.cs
- ExecutionTracker.cs
- XamlHostingSectionGroup.cs
- WebPartAddingEventArgs.cs
- QuaternionAnimationBase.cs
- WorkflowServiceHostFactory.cs
- AutomationIdentifier.cs
- MenuItemCollection.cs
- DataGridComponentEditor.cs
- InvalidCastException.cs
- DbProviderManifest.cs
- HyperLinkColumn.cs
- EndpointDiscoveryMetadata11.cs
- GetMemberBinder.cs
- NumberAction.cs
- TextRangeAdaptor.cs
- AstTree.cs
- NonBatchDirectoryCompiler.cs
- FontFamilyConverter.cs
- AttachedPropertyMethodSelector.cs
- Tuple.cs
- RotateTransform.cs
- UInt16Storage.cs
- Root.cs
- ValidationSummaryDesigner.cs
- WebPartConnectionsCancelVerb.cs
- SchemaCollectionPreprocessor.cs
- ControlParameter.cs
- StringFunctions.cs
- AsyncOperation.cs
- DesignerDataColumn.cs
- CommentEmitter.cs
- PropertyTabChangedEvent.cs
- InternalPolicyElement.cs
- FlowPosition.cs
- SafeSerializationManager.cs
- AdRotator.cs
- RankException.cs
- WsdlBuildProvider.cs
- PrivilegeNotHeldException.cs
- ObjectDataSourceView.cs
- dataprotectionpermissionattribute.cs
- WriterOutput.cs
- XmlIterators.cs
- AudioBase.cs
- ModelPropertyImpl.cs
- XpsFilter.cs
- ListDictionaryInternal.cs
- WindowsGrip.cs
- ThemeDictionaryExtension.cs
- XmlElement.cs
- Floater.cs
- DataGridDetailsPresenter.cs
- SHA512Managed.cs
- ProfileProvider.cs
- CqlLexer.cs
- PageSetupDialog.cs
- QilValidationVisitor.cs
- ReferencedType.cs
- TypefaceMetricsCache.cs
- EditorServiceContext.cs
- OLEDB_Enum.cs
- CompilerWrapper.cs
- RangeValuePattern.cs
- StringOutput.cs
- DebugInfo.cs
- PackageProperties.cs
- StringAnimationBase.cs
- BrowsableAttribute.cs
- XamlParser.cs
- InputBindingCollection.cs
- AstTree.cs
- DocumentGrid.cs
- WindowsIPAddress.cs
- AnnotationDocumentPaginator.cs
- TraceEventCache.cs
- HostingEnvironmentSection.cs
- DataGrid.cs
- ByteStack.cs
- LinqDataSourceInsertEventArgs.cs
- Memoizer.cs
- VirtualPathUtility.cs
- InputMethodStateChangeEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- UnsafeNativeMethods.cs
- EntityDataSourceEntitySetNameItem.cs
- IsolatedStorageFilePermission.cs
- BaseProcessor.cs
- LinearGradientBrush.cs
- SwitchElementsCollection.cs
- SoapIncludeAttribute.cs
- SafeRegistryKey.cs
- DataView.cs
- Button.cs
- Rules.cs
- VisualStateManager.cs
- COM2ExtendedUITypeEditor.cs
- Timeline.cs