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
- TabletDevice.cs
- ReceiveSecurityHeaderEntry.cs
- CorrelationToken.cs
- SequenceQuery.cs
- TemplateGroupCollection.cs
- MultilineStringConverter.cs
- MediaTimeline.cs
- ConfigurationConverterBase.cs
- NetworkInformationPermission.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlSchemaComplexContent.cs
- TraversalRequest.cs
- EncryptedType.cs
- ListViewUpdateEventArgs.cs
- MenuAdapter.cs
- WindowsTokenRoleProvider.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- TabRenderer.cs
- PriorityBindingExpression.cs
- SurrogateEncoder.cs
- TraceListeners.cs
- XamlReaderConstants.cs
- ColorIndependentAnimationStorage.cs
- IFormattable.cs
- StringArrayEditor.cs
- WindowsFormsSectionHandler.cs
- PrimarySelectionGlyph.cs
- DESCryptoServiceProvider.cs
- DefaultHttpHandler.cs
- SourceFileBuildProvider.cs
- FrameworkContentElement.cs
- ArrangedElement.cs
- DesignerLoader.cs
- FixedFindEngine.cs
- StructuralCache.cs
- NonParentingControl.cs
- XmlUtilWriter.cs
- TypeDependencyAttribute.cs
- ObjectDataSourceDesigner.cs
- DBDataPermissionAttribute.cs
- UIElementAutomationPeer.cs
- ViewGenResults.cs
- DummyDataSource.cs
- SubMenuStyle.cs
- RoleProviderPrincipal.cs
- DynamicHyperLink.cs
- BaseParaClient.cs
- SymbolType.cs
- ControlDesigner.cs
- TextTreeDeleteContentUndoUnit.cs
- DecoderReplacementFallback.cs
- Columns.cs
- SafeProcessHandle.cs
- DuplexChannelFactory.cs
- FirstMatchCodeGroup.cs
- HttpValueCollection.cs
- SubclassTypeValidator.cs
- MemoryStream.cs
- SizeChangedInfo.cs
- TextDecorationCollection.cs
- IsolatedStorageFilePermission.cs
- AppDomainFactory.cs
- DynamicRendererThreadManager.cs
- ThicknessAnimationUsingKeyFrames.cs
- ChangeConflicts.cs
- MbpInfo.cs
- RepeatBehavior.cs
- AdditionalEntityFunctions.cs
- Authorization.cs
- DecimalConverter.cs
- XmlCharType.cs
- EditorAttribute.cs
- Errors.cs
- ExceptionUtil.cs
- TextRunTypographyProperties.cs
- DrawToolTipEventArgs.cs
- HtmlTable.cs
- DataGridViewComboBoxCell.cs
- ActivityWithResultConverter.cs
- DataServiceRequestArgs.cs
- CfgParser.cs
- ObjectRef.cs
- ChildrenQuery.cs
- XmlSortKeyAccumulator.cs
- remotingproxy.cs
- VScrollProperties.cs
- ImageSourceTypeConverter.cs
- DetailsViewRowCollection.cs
- ColumnCollection.cs
- OracleInternalConnection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- CompiledAction.cs
- ServiceActivationException.cs
- XmlCDATASection.cs
- KeyConverter.cs
- Size3D.cs
- FixedSOMContainer.cs
- VisualTreeUtils.cs
- SessionPageStateSection.cs