Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- EntityCollection.cs
- RoleManagerModule.cs
- EmbeddedObject.cs
- GridItemCollection.cs
- TrackingDataItem.cs
- PlaceHolder.cs
- ImpersonateTokenRef.cs
- Keyboard.cs
- ProfileEventArgs.cs
- NamespaceQuery.cs
- FindCriteria.cs
- XmlSerializerFactory.cs
- RenderDataDrawingContext.cs
- Size.cs
- ControlDesigner.cs
- ImageField.cs
- ListContractAdapter.cs
- Button.cs
- ColorAnimationUsingKeyFrames.cs
- WpfKnownTypeInvoker.cs
- XPathDocumentNavigator.cs
- ListViewItem.cs
- ParameterEditorUserControl.cs
- RolePrincipal.cs
- OracleConnection.cs
- CounterSample.cs
- AsyncOperationManager.cs
- ErrorTableItemStyle.cs
- RootBrowserWindow.cs
- XmlSchemaValidator.cs
- TextPatternIdentifiers.cs
- DataGridViewDataErrorEventArgs.cs
- OdbcParameterCollection.cs
- DataObjectFieldAttribute.cs
- HtmlTableRow.cs
- TabItemWrapperAutomationPeer.cs
- PointIndependentAnimationStorage.cs
- DataFormats.cs
- AssemblyBuilder.cs
- ToolStripSystemRenderer.cs
- HttpDebugHandler.cs
- ExtractorMetadata.cs
- BamlMapTable.cs
- HttpHandlerActionCollection.cs
- StorageMappingFragment.cs
- XslTransform.cs
- WebPartManagerInternals.cs
- CacheMemory.cs
- Speller.cs
- HttpInputStream.cs
- ToolStripRenderEventArgs.cs
- MimeMapping.cs
- ToolStripContainer.cs
- CodeNamespace.cs
- DataChangedEventManager.cs
- SQLMembershipProvider.cs
- SMSvcHost.cs
- UserNameSecurityTokenAuthenticator.cs
- ProcessModuleCollection.cs
- XmlSchemaAny.cs
- DeclarativeExpressionConditionDeclaration.cs
- PathFigureCollectionConverter.cs
- StatusBarPanel.cs
- __Filters.cs
- UpdateExpressionVisitor.cs
- FormatConvertedBitmap.cs
- XmlBinaryWriter.cs
- SchemaSetCompiler.cs
- ErrorFormatterPage.cs
- ColumnWidthChangingEvent.cs
- StorageTypeMapping.cs
- StylusTip.cs
- RemotingSurrogateSelector.cs
- Debug.cs
- BamlTreeMap.cs
- XmlNamedNodeMap.cs
- FileNotFoundException.cs
- OdbcConnectionHandle.cs
- HttpAsyncResult.cs
- DbProviderManifest.cs
- DataGridViewRowCollection.cs
- CopyAction.cs
- FtpRequestCacheValidator.cs
- FatalException.cs
- ToolStripItem.cs
- ConnectAlgorithms.cs
- ReplacementText.cs
- ConstraintManager.cs
- XmlReader.cs
- Adorner.cs
- MailMessageEventArgs.cs
- PrintPageEvent.cs
- PointLightBase.cs
- mediaeventshelper.cs
- ellipse.cs
- X509ChainPolicy.cs
- ToolboxItemAttribute.cs
- HtmlImage.cs
- TemplateBindingExpression.cs
- MDIControlStrip.cs