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
- FontFamilyConverter.cs
- OleDbRowUpdatingEvent.cs
- TemplateXamlParser.cs
- QuaternionConverter.cs
- ZipIOExtraField.cs
- LoadRetryStrategyFactory.cs
- ToolStripManager.cs
- UTF8Encoding.cs
- SubMenuStyle.cs
- oledbmetadatacolumnnames.cs
- ClaimComparer.cs
- ControlIdConverter.cs
- DataRowExtensions.cs
- AdornerDecorator.cs
- WorkflowInstanceExtensionProvider.cs
- AppModelKnownContentFactory.cs
- ApplicationDirectory.cs
- SpotLight.cs
- UiaCoreApi.cs
- DoubleLinkList.cs
- ClientScriptManager.cs
- ClipboardProcessor.cs
- FileInfo.cs
- SchemaImporterExtensionElementCollection.cs
- ListSortDescription.cs
- SchemaObjectWriter.cs
- ZipIOExtraField.cs
- TextTreeObjectNode.cs
- BoundsDrawingContextWalker.cs
- CommandEventArgs.cs
- LayoutUtils.cs
- EntityDataSourceSelectedEventArgs.cs
- Keyboard.cs
- ObjectTypeMapping.cs
- LambdaCompiler.Binary.cs
- SocketStream.cs
- ProcessHostMapPath.cs
- input.cs
- ThrowHelper.cs
- IISMapPath.cs
- AssociationProvider.cs
- RegistryDataKey.cs
- RecommendedAsConfigurableAttribute.cs
- XmlDocument.cs
- CompiledRegexRunner.cs
- TryCatch.cs
- CultureInfoConverter.cs
- SqlClientWrapperSmiStreamChars.cs
- StylusPointPropertyUnit.cs
- XmlSchemaIdentityConstraint.cs
- OutputWindow.cs
- CodeBinaryOperatorExpression.cs
- UserControlDesigner.cs
- XmlWriterSettings.cs
- BamlLocalizer.cs
- NavigationCommands.cs
- HwndSourceKeyboardInputSite.cs
- CodeDefaultValueExpression.cs
- IriParsingElement.cs
- NullableDoubleSumAggregationOperator.cs
- AdPostCacheSubstitution.cs
- EntityViewGenerator.cs
- ServicePointManagerElement.cs
- DataRow.cs
- templategroup.cs
- SubclassTypeValidator.cs
- EntityDesignerDataSourceView.cs
- OperatingSystem.cs
- TextDataBindingHandler.cs
- WebServiceData.cs
- DiscreteKeyFrames.cs
- XmlUtil.cs
- TcpAppDomainProtocolHandler.cs
- UnicodeEncoding.cs
- QilXmlWriter.cs
- SessionIDManager.cs
- EnumCodeDomSerializer.cs
- TemplateInstanceAttribute.cs
- StyleXamlParser.cs
- PopupRootAutomationPeer.cs
- DataGridColumnHeaderAutomationPeer.cs
- ScriptHandlerFactory.cs
- SemanticResultValue.cs
- TitleStyle.cs
- QilPatternVisitor.cs
- CodeSnippetExpression.cs
- XmlNamespaceDeclarationsAttribute.cs
- DictionaryTraceRecord.cs
- ValuePattern.cs
- TextModifierScope.cs
- AuthenticationModuleElement.cs
- ToolStripRendererSwitcher.cs
- COM2ExtendedUITypeEditor.cs
- Point3DKeyFrameCollection.cs
- ContentPlaceHolder.cs
- RecognitionResult.cs
- DispatcherTimer.cs
- SID.cs
- RawMouseInputReport.cs
- InternalCache.cs