Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1 / RunInstallerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// /// [AttributeUsage(AttributeTargets.Class)] public class RunInstallerAttribute : Attribute { private bool runInstaller; ///Specifies whether an installer should be invoked during /// installation of an assembly. ////// /// public RunInstallerAttribute(bool runInstaller) { this.runInstaller = runInstaller; } ////// Initializes a new instance of /// the ///class. /// /// /// public bool RunInstaller { get { return runInstaller; } } ////// Gets a value indicating whether an installer should be /// invoked during installation of an assembly. /// ////// /// public static readonly RunInstallerAttribute Yes = new RunInstallerAttribute(true); ////// Specifies that a /// component is visible in a visual designer. This ///field is /// read-only. /// /// /// public static readonly RunInstallerAttribute No = new RunInstallerAttribute(false); ////// Specifies that a /// component /// is not visible in a visual designer. This ///field is /// read-only. /// /// /// public static readonly RunInstallerAttribute Default = No; ////// Specifies the default visiblity, which is ///. This field is /// read-only. /// /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RunInstallerAttribute other = obj as RunInstallerAttribute; return other != null && other.RunInstaller == runInstaller; } ////// /// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// /// 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.Diagnostics; using System.Security.Permissions; ////// /// [AttributeUsage(AttributeTargets.Class)] public class RunInstallerAttribute : Attribute { private bool runInstaller; ///Specifies whether an installer should be invoked during /// installation of an assembly. ////// /// public RunInstallerAttribute(bool runInstaller) { this.runInstaller = runInstaller; } ////// Initializes a new instance of /// the ///class. /// /// /// public bool RunInstaller { get { return runInstaller; } } ////// Gets a value indicating whether an installer should be /// invoked during installation of an assembly. /// ////// /// public static readonly RunInstallerAttribute Yes = new RunInstallerAttribute(true); ////// Specifies that a /// component is visible in a visual designer. This ///field is /// read-only. /// /// /// public static readonly RunInstallerAttribute No = new RunInstallerAttribute(false); ////// Specifies that a /// component /// is not visible in a visual designer. This ///field is /// read-only. /// /// /// public static readonly RunInstallerAttribute Default = No; ////// Specifies the default visiblity, which is ///. This field is /// read-only. /// /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RunInstallerAttribute other = obj as RunInstallerAttribute; return other != null && other.RunInstaller == runInstaller; } ////// /// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// /// 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
- BindingsCollection.cs
- SurrogateDataContract.cs
- SystemEvents.cs
- WebPartZoneBase.cs
- TraceLevelStore.cs
- SpeakProgressEventArgs.cs
- ButtonField.cs
- HttpListener.cs
- CodeConstructor.cs
- UserValidatedEventArgs.cs
- EntityAdapter.cs
- CharacterString.cs
- _Semaphore.cs
- DataGridViewColumnEventArgs.cs
- IISMapPath.cs
- FtpWebRequest.cs
- basecomparevalidator.cs
- InvalidCastException.cs
- BuildProviderCollection.cs
- XmlWrappingWriter.cs
- TraceSource.cs
- PointF.cs
- MenuItem.cs
- LockRecursionException.cs
- FileDataSourceCache.cs
- BulletChrome.cs
- XmlElementAttributes.cs
- TableLayoutStyle.cs
- Lasso.cs
- ObjectItemCollection.cs
- Relationship.cs
- WizardForm.cs
- SqlDataSourceEnumerator.cs
- PropertyPushdownHelper.cs
- DocumentEventArgs.cs
- SharedPersonalizationStateInfo.cs
- XmlILCommand.cs
- GenericPrincipal.cs
- PKCS1MaskGenerationMethod.cs
- DataTableMapping.cs
- Effect.cs
- HtmlToClrEventProxy.cs
- WindowsGraphicsCacheManager.cs
- filewebrequest.cs
- OdbcStatementHandle.cs
- ResourceKey.cs
- DataGridViewCell.cs
- ScrollItemPatternIdentifiers.cs
- Context.cs
- OleDbDataAdapter.cs
- SHA256CryptoServiceProvider.cs
- PersonalizablePropertyEntry.cs
- PageCache.cs
- Schedule.cs
- KeyNotFoundException.cs
- XmlSchemaImport.cs
- DocumentNUp.cs
- HttpCapabilitiesBase.cs
- DetailsViewDesigner.cs
- BitmapEffect.cs
- Exceptions.cs
- TextElementEnumerator.cs
- RuntimeHelpers.cs
- TypeLoadException.cs
- DataGridRowEventArgs.cs
- FormsIdentity.cs
- SqlConnectionFactory.cs
- UTF32Encoding.cs
- WebPartZoneCollection.cs
- VirtualizedContainerService.cs
- VectorAnimationBase.cs
- ApplicationCommands.cs
- FormViewPagerRow.cs
- WorkflowHostingResponseContext.cs
- ExpressionNode.cs
- LinqDataSourceDisposeEventArgs.cs
- CachedPathData.cs
- ExtenderProvidedPropertyAttribute.cs
- NameTable.cs
- SessionStateUtil.cs
- OrderedDictionaryStateHelper.cs
- VersionedStreamOwner.cs
- LinqDataSourceValidationException.cs
- WCFBuildProvider.cs
- panel.cs
- CodeRemoveEventStatement.cs
- SafeCertificateContext.cs
- WorkflowServiceNamespace.cs
- StreamWithDictionary.cs
- RsaKeyIdentifierClause.cs
- HttpCapabilitiesEvaluator.cs
- DataSourceCache.cs
- XmlNullResolver.cs
- ProfileSettingsCollection.cs
- CodeAttributeDeclaration.cs
- EntityModelSchemaGenerator.cs
- Canvas.cs
- CodeTypeParameterCollection.cs
- FixedSOMImage.cs
- EdmEntityTypeAttribute.cs