Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BigInt.cs
- EventLogInternal.cs
- PersonalizationDictionary.cs
- UncommonField.cs
- HostProtectionException.cs
- StreamGeometry.cs
- HttpPostedFile.cs
- EventNotify.cs
- FormatConvertedBitmap.cs
- SiteMapNodeCollection.cs
- PerfCounters.cs
- GridViewSelectEventArgs.cs
- ResourceExpression.cs
- UshortList2.cs
- RenderingEventArgs.cs
- FunctionDetailsReader.cs
- StandardToolWindows.cs
- AssemblyNameProxy.cs
- XsltContext.cs
- LoginViewDesigner.cs
- ShapeTypeface.cs
- RootNamespaceAttribute.cs
- VirtualPathProvider.cs
- CleanUpVirtualizedItemEventArgs.cs
- WebResourceAttribute.cs
- DataRowIndexBuffer.cs
- LinkTarget.cs
- HtmlLink.cs
- EntityDataSourceChangingEventArgs.cs
- Utils.cs
- DynamicRenderer.cs
- TraceHandler.cs
- NameValueConfigurationElement.cs
- DrawTreeNodeEventArgs.cs
- PathGradientBrush.cs
- DocumentCollection.cs
- MultiBindingExpression.cs
- Pointer.cs
- CachedBitmap.cs
- VScrollProperties.cs
- HtmlTextViewAdapter.cs
- TraversalRequest.cs
- EmptyQuery.cs
- AdapterUtil.cs
- StdRegProviderWrapper.cs
- HostingEnvironmentException.cs
- ArrayHelper.cs
- TransactionProtocol.cs
- PtsCache.cs
- DeflateStream.cs
- _Semaphore.cs
- RemoteWebConfigurationHostStream.cs
- FunctionDefinition.cs
- BufferBuilder.cs
- HttpConfigurationSystem.cs
- Baml2006SchemaContext.cs
- OpenTypeCommon.cs
- RSAProtectedConfigurationProvider.cs
- LayoutEditorPart.cs
- MissingMethodException.cs
- BooleanFunctions.cs
- ConstructorExpr.cs
- AuthenticationSection.cs
- WebServiceReceiveDesigner.cs
- ContentPresenter.cs
- ObjectMemberMapping.cs
- ImageUrlEditor.cs
- ToolStripSettings.cs
- StrongTypingException.cs
- SqlRewriteScalarSubqueries.cs
- SoapSchemaMember.cs
- LinqDataSourceUpdateEventArgs.cs
- XPathNodeList.cs
- ContextMenuAutomationPeer.cs
- PrtTicket_Public_Simple.cs
- CategoryNameCollection.cs
- CalculatedColumn.cs
- FormViewUpdateEventArgs.cs
- EntityDataSourceStatementEditorForm.cs
- Win32.cs
- listitem.cs
- InheritanceContextChangedEventManager.cs
- MouseEventArgs.cs
- RegexCaptureCollection.cs
- TableHeaderCell.cs
- OrCondition.cs
- TraceUtils.cs
- ChangeTracker.cs
- _CacheStreams.cs
- GenericWebPart.cs
- ControlDesigner.cs
- Control.cs
- SpecialFolderEnumConverter.cs
- SearchForVirtualItemEventArgs.cs
- RecognizedWordUnit.cs
- DrawingVisualDrawingContext.cs
- TextEndOfSegment.cs
- ReturnEventArgs.cs
- UncommonField.cs
- SkinBuilder.cs