Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WindowsListViewGroupSubsetLink.cs
- XmlSchemaParticle.cs
- ReferenceSchema.cs
- WebPartConnectVerb.cs
- InternalBase.cs
- AvTraceDetails.cs
- ListParagraph.cs
- HtmlDocument.cs
- RelationshipConstraintValidator.cs
- Column.cs
- GB18030Encoding.cs
- FieldAccessException.cs
- ClientScriptItem.cs
- IsolatedStorageFile.cs
- BaseTransportHeaders.cs
- DataControlReference.cs
- RecommendedAsConfigurableAttribute.cs
- Pens.cs
- InputScopeNameConverter.cs
- ExceptionValidationRule.cs
- CodeTypeConstructor.cs
- Matrix.cs
- Internal.cs
- PagedDataSource.cs
- XmlCharCheckingWriter.cs
- SerializationInfo.cs
- NamespaceQuery.cs
- EndEvent.cs
- PromptEventArgs.cs
- Options.cs
- TabControlDesigner.cs
- shaperfactory.cs
- Operators.cs
- Header.cs
- BroadcastEventHelper.cs
- XmlWrappingReader.cs
- PartialCachingAttribute.cs
- FileLogRecord.cs
- SettingsAttributeDictionary.cs
- ResolveResponseInfo.cs
- TableLayoutRowStyleCollection.cs
- CodeGeneratorOptions.cs
- AppSettingsReader.cs
- RuleInfoComparer.cs
- IsolatedStoragePermission.cs
- DataBindingExpressionBuilder.cs
- MimeWriter.cs
- webeventbuffer.cs
- RegexMatch.cs
- LocalizationComments.cs
- ReaderWriterLock.cs
- StringKeyFrameCollection.cs
- ZipIOExtraField.cs
- DesignerDataStoredProcedure.cs
- LogLogRecordEnumerator.cs
- DataErrorValidationRule.cs
- BuildTopDownAttribute.cs
- Transform3DGroup.cs
- PrivacyNoticeElement.cs
- WebConfigurationHost.cs
- XPathQilFactory.cs
- SynchronizedInputAdaptor.cs
- ContextMarshalException.cs
- SearchForVirtualItemEventArgs.cs
- NativeMethods.cs
- Pens.cs
- RuntimeConfigLKG.cs
- FileLoadException.cs
- Vector3DAnimationUsingKeyFrames.cs
- XmlExpressionDumper.cs
- MissingMemberException.cs
- RenderTargetBitmap.cs
- XmlSubtreeReader.cs
- QueryExtender.cs
- IndexOutOfRangeException.cs
- ListBoxItemAutomationPeer.cs
- WebUtil.cs
- SchemaNamespaceManager.cs
- CodeTypeDelegate.cs
- NegotiationTokenAuthenticatorState.cs
- SubMenuStyle.cs
- UnsafeNativeMethods.cs
- ComboBox.cs
- NonParentingControl.cs
- EdmValidator.cs
- Stack.cs
- KeyMatchBuilder.cs
- SiteMapDataSourceView.cs
- ManipulationCompletedEventArgs.cs
- CodeMethodInvokeExpression.cs
- PanelStyle.cs
- GeneralTransform2DTo3D.cs
- AuthorizationBehavior.cs
- StrongTypingException.cs
- RegularExpressionValidator.cs
- DataSetMappper.cs
- Misc.cs
- ClockController.cs
- SafeArrayTypeMismatchException.cs
- InputLangChangeRequestEvent.cs