Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindingContext.cs
- ImageClickEventArgs.cs
- PolicyChain.cs
- PointUtil.cs
- TableProviderWrapper.cs
- NetCodeGroup.cs
- KeyedQueue.cs
- SurrogateEncoder.cs
- VariableAction.cs
- FormattedTextSymbols.cs
- CodeRemoveEventStatement.cs
- _IPv4Address.cs
- XmlSchemaObjectCollection.cs
- RowToParametersTransformer.cs
- Section.cs
- TcpActivation.cs
- BinaryObjectReader.cs
- VisualProxy.cs
- ProgressBarRenderer.cs
- Permission.cs
- BoundField.cs
- ComboBoxItem.cs
- TypedDatasetGenerator.cs
- Activation.cs
- MailWebEventProvider.cs
- FixedTextSelectionProcessor.cs
- PerformanceCounterLib.cs
- SoapSchemaExporter.cs
- WebPartHeaderCloseVerb.cs
- SqlStatistics.cs
- Point3DAnimationUsingKeyFrames.cs
- ImageIndexConverter.cs
- OutputWindow.cs
- NativeCompoundFileAPIs.cs
- IPAddress.cs
- DataGridAddNewRow.cs
- UriTemplateLiteralPathSegment.cs
- StringExpressionSet.cs
- SectionInformation.cs
- DependencyPropertyAttribute.cs
- RemoteAsymmetricSignatureFormatter.cs
- RetrieveVirtualItemEventArgs.cs
- ExpressionBuilder.cs
- DocumentXPathNavigator.cs
- CodeFieldReferenceExpression.cs
- Context.cs
- PageContentAsyncResult.cs
- CryptoConfig.cs
- DefinitionBase.cs
- GridEntryCollection.cs
- PagesChangedEventArgs.cs
- PaintValueEventArgs.cs
- TraceLog.cs
- BinaryObjectInfo.cs
- RadioButton.cs
- TrackingParticipant.cs
- SharedConnectionWorkflowTransactionService.cs
- HtmlHistory.cs
- RelOps.cs
- StateMachine.cs
- ProviderBase.cs
- MaskedTextBox.cs
- ToolboxDataAttribute.cs
- InternalTypeHelper.cs
- StringUtil.cs
- MouseButton.cs
- KeysConverter.cs
- Ipv6Element.cs
- FunctionDescription.cs
- GroupBoxRenderer.cs
- X509CertificateInitiatorServiceCredential.cs
- TreeNodeStyleCollection.cs
- HttpContextServiceHost.cs
- SequentialOutput.cs
- ViewStateModeByIdAttribute.cs
- InstallHelper.cs
- RectConverter.cs
- WebBrowserUriTypeConverter.cs
- DataSourceXmlSubItemAttribute.cs
- XslAst.cs
- FormsAuthenticationTicket.cs
- Invariant.cs
- ZipIOExtraField.cs
- ChannelHandler.cs
- TextBoxBase.cs
- UIElementAutomationPeer.cs
- SystemIPv6InterfaceProperties.cs
- Visual3D.cs
- Enlistment.cs
- RawStylusInputCustomData.cs
- CodeMemberField.cs
- X509CertificateEndpointIdentity.cs
- SrgsDocument.cs
- Tile.cs
- WebScriptEnablingElement.cs
- util.cs
- FieldToken.cs
- BamlLocalizableResource.cs
- MaterializeFromAtom.cs
- WindowsGraphicsWrapper.cs