Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBCommand.cs
- BackStopAuthenticationModule.cs
- XmlNodeComparer.cs
- UserControlCodeDomTreeGenerator.cs
- GridEntry.cs
- ListViewItem.cs
- Triplet.cs
- RtfControls.cs
- COM2ComponentEditor.cs
- StructuredTypeEmitter.cs
- DtdParser.cs
- TabRenderer.cs
- WsatServiceAddress.cs
- HtmlInputCheckBox.cs
- BaseHashHelper.cs
- DataContractJsonSerializer.cs
- BinaryWriter.cs
- DataGridViewCheckBoxCell.cs
- ListBindingHelper.cs
- XhtmlConformanceSection.cs
- SystemPens.cs
- SubqueryRules.cs
- FixedHyperLink.cs
- CustomAttributeSerializer.cs
- NumericUpDownAcceleration.cs
- mansign.cs
- SecurityCredentialsManager.cs
- SymbolType.cs
- ItemPager.cs
- HttpContext.cs
- FileSecurity.cs
- UriSchemeKeyedCollection.cs
- ApplicationProxyInternal.cs
- StorageEntitySetMapping.cs
- RunInstallerAttribute.cs
- Zone.cs
- ConversionContext.cs
- WasEndpointConfigContainer.cs
- MsmqProcessProtocolHandler.cs
- FieldInfo.cs
- LineVisual.cs
- MouseGestureValueSerializer.cs
- IPHostEntry.cs
- BindingOperations.cs
- DocumentPage.cs
- TypeConverterHelper.cs
- SchemaRegistration.cs
- TextTreePropertyUndoUnit.cs
- MachineKeySection.cs
- TypeInformation.cs
- StackSpiller.cs
- EmissiveMaterial.cs
- AutomationPatternInfo.cs
- TypeContext.cs
- VectorAnimation.cs
- WebColorConverter.cs
- counter.cs
- ResourceCategoryAttribute.cs
- ScrollProviderWrapper.cs
- CopyEncoder.cs
- HtmlTableRow.cs
- ObjectHandle.cs
- SchemaTableColumn.cs
- SimpleWorkerRequest.cs
- PaintValueEventArgs.cs
- CodeMemberProperty.cs
- SafeEventLogWriteHandle.cs
- CompModSwitches.cs
- CopyOfAction.cs
- XmlHelper.cs
- ButtonPopupAdapter.cs
- PropertyStore.cs
- FileSystemInfo.cs
- SimpleBitVector32.cs
- TableLayoutSettings.cs
- DataGridViewLinkCell.cs
- WorkflowEventArgs.cs
- Zone.cs
- DtcInterfaces.cs
- Fonts.cs
- EntitySetDataBindingList.cs
- ImageMetadata.cs
- HttpModulesSection.cs
- ThreadPool.cs
- SystemIcons.cs
- ConfigXmlText.cs
- ProxyFragment.cs
- KoreanCalendar.cs
- MultiBinding.cs
- ExternalCalls.cs
- XmlMtomWriter.cs
- HttpHandlerActionCollection.cs
- ViewGenResults.cs
- XPathMultyIterator.cs
- IdentitySection.cs
- SmtpNtlmAuthenticationModule.cs
- ConstraintCollection.cs
- SearchExpression.cs
- XmlDocumentFragment.cs
- Stack.cs