Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / PasswordPropertyTextAttribute.cs / 1 / PasswordPropertyTextAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// If this attribute is placed on a property or a type, its text representation in a property window /// will appear as dots or astrisks to indicate a password field. This indidation in no way /// represents any type of encryption or security. /// [AttributeUsage(AttributeTargets.All)] public sealed class PasswordPropertyTextAttribute : Attribute { ////// Sets the System.ComponentModel.Design.PasswordPropertyText /// attribute by default to true. /// public static readonly PasswordPropertyTextAttribute Yes = new PasswordPropertyTextAttribute(true); ////// Sets the System.ComponentModel.Design.PasswordPropertyText /// attribute by default to false. /// public static readonly PasswordPropertyTextAttribute No = new PasswordPropertyTextAttribute(false); ////// Sets the System.ComponentModel.Design.PasswordPropertyText /// attribute by default to false. /// public static readonly PasswordPropertyTextAttribute Default = No; private bool _password; ////// Creates a default PasswordPropertyTextAttribute. /// public PasswordPropertyTextAttribute() : this(false) { } ////// Creates a PasswordPropertyTextAttribute with the given password value. /// public PasswordPropertyTextAttribute(bool password) { _password = password; } ////// Gets a value indicating if the property this attribute is defined for should be shown as password text. /// public bool Password { get { return _password; } } ////// Overload for object equality /// public override bool Equals(object o) { if (o is PasswordPropertyTextAttribute) { return ((PasswordPropertyTextAttribute)o).Password == _password; } return false; } ////// Returns the hashcode for this object. /// public override int GetHashCode() { return base.GetHashCode(); } ////// Gets a value indicating whether this attribute is set to true by default. /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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.Security.Permissions; ////// If this attribute is placed on a property or a type, its text representation in a property window /// will appear as dots or astrisks to indicate a password field. This indidation in no way /// represents any type of encryption or security. /// [AttributeUsage(AttributeTargets.All)] public sealed class PasswordPropertyTextAttribute : Attribute { ////// Sets the System.ComponentModel.Design.PasswordPropertyText /// attribute by default to true. /// public static readonly PasswordPropertyTextAttribute Yes = new PasswordPropertyTextAttribute(true); ////// Sets the System.ComponentModel.Design.PasswordPropertyText /// attribute by default to false. /// public static readonly PasswordPropertyTextAttribute No = new PasswordPropertyTextAttribute(false); ////// Sets the System.ComponentModel.Design.PasswordPropertyText /// attribute by default to false. /// public static readonly PasswordPropertyTextAttribute Default = No; private bool _password; ////// Creates a default PasswordPropertyTextAttribute. /// public PasswordPropertyTextAttribute() : this(false) { } ////// Creates a PasswordPropertyTextAttribute with the given password value. /// public PasswordPropertyTextAttribute(bool password) { _password = password; } ////// Gets a value indicating if the property this attribute is defined for should be shown as password text. /// public bool Password { get { return _password; } } ////// Overload for object equality /// public override bool Equals(object o) { if (o is PasswordPropertyTextAttribute) { return ((PasswordPropertyTextAttribute)o).Password == _password; } return false; } ////// Returns the hashcode for this object. /// public override int GetHashCode() { return base.GetHashCode(); } ////// Gets a value indicating whether this attribute is set to true by default. /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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
- DateTimeConverter2.cs
- Decimal.cs
- FaultContext.cs
- ProfileModule.cs
- CellParagraph.cs
- _NativeSSPI.cs
- TopClause.cs
- HttpCacheVaryByContentEncodings.cs
- PropertyGeneratedEventArgs.cs
- ObjectList.cs
- DtdParser.cs
- LinkDescriptor.cs
- DecoderFallback.cs
- GetWinFXPath.cs
- ImageInfo.cs
- ThicknessAnimation.cs
- PropertyChangeTracker.cs
- ExpiredSecurityTokenException.cs
- Byte.cs
- WebEventCodes.cs
- RemoteWebConfigurationHostServer.cs
- CqlBlock.cs
- OperationValidationEventArgs.cs
- TabletCollection.cs
- ToolStripItemDesigner.cs
- CaseStatement.cs
- LinqDataSource.cs
- ApplicationFileCodeDomTreeGenerator.cs
- QuinticEase.cs
- ListDictionaryInternal.cs
- DecimalAnimationBase.cs
- WindowsListBox.cs
- HttpModuleAction.cs
- BulletedListDesigner.cs
- KeyGestureConverter.cs
- IndexOutOfRangeException.cs
- Executor.cs
- XmlSchemaComplexType.cs
- ObjectQuery_EntitySqlExtensions.cs
- DataContractAttribute.cs
- WorkflowItemPresenter.cs
- NativeMethods.cs
- MemberDomainMap.cs
- DataGridViewCellCancelEventArgs.cs
- XsdBuildProvider.cs
- WindowsNonControl.cs
- ZoneIdentityPermission.cs
- DataControlField.cs
- OrderedDictionary.cs
- TryCatch.cs
- BaseCodeDomTreeGenerator.cs
- EdmFunction.cs
- GenericWebPart.cs
- VolatileResourceManager.cs
- XpsSerializationManager.cs
- thaishape.cs
- FontFamilyConverter.cs
- MarkupExtensionParser.cs
- EmptyImpersonationContext.cs
- PresentationTraceSources.cs
- CodeTryCatchFinallyStatement.cs
- MemoryRecordBuffer.cs
- UpDownBase.cs
- ScriptResourceInfo.cs
- RowType.cs
- LoadGrammarCompletedEventArgs.cs
- CodeCommentStatement.cs
- ImageCodecInfo.cs
- PanelStyle.cs
- SafeNativeMethods.cs
- TextCollapsingProperties.cs
- AssociationTypeEmitter.cs
- ReadOnlyDataSource.cs
- SizeValueSerializer.cs
- ComponentChangedEvent.cs
- SqlDataSourceView.cs
- ScrollEventArgs.cs
- SQLCharsStorage.cs
- UpnEndpointIdentityExtension.cs
- SQLStringStorage.cs
- NullableFloatMinMaxAggregationOperator.cs
- ConstructorArgumentAttribute.cs
- RemotingSurrogateSelector.cs
- WebResponse.cs
- ConnectionPoint.cs
- OleDbPermission.cs
- ACE.cs
- ConfigurationElementProperty.cs
- TypeSystemProvider.cs
- ArraySubsetEnumerator.cs
- ToolBarOverflowPanel.cs
- FakeModelItemImpl.cs
- MatrixCamera.cs
- MessageQueuePermission.cs
- DataFormats.cs
- SqlCacheDependencySection.cs
- Utility.cs
- TextDocumentView.cs
- ClientSettingsSection.cs
- ILGenerator.cs