Code:
/ DotNET / DotNET / 8.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
- Glyph.cs
- PropertyChange.cs
- MultipleViewPatternIdentifiers.cs
- ClientScriptManager.cs
- Missing.cs
- TabPage.cs
- ConfigsHelper.cs
- cookieexception.cs
- MembershipValidatePasswordEventArgs.cs
- HandlerWithFactory.cs
- SystemException.cs
- TextProviderWrapper.cs
- CellLabel.cs
- SystemIPInterfaceStatistics.cs
- BitmapDecoder.cs
- MulticastNotSupportedException.cs
- BasicAsyncResult.cs
- GregorianCalendar.cs
- SQLInt64.cs
- HyperlinkAutomationPeer.cs
- CodeAccessSecurityEngine.cs
- GeneralTransform3D.cs
- NullableConverter.cs
- InheritanceContextHelper.cs
- SignedPkcs7.cs
- WebBrowserProgressChangedEventHandler.cs
- SyndicationDeserializer.cs
- AuthenticationSection.cs
- TextMessageEncodingBindingElement.cs
- QuaternionValueSerializer.cs
- ProxyWebPartManager.cs
- MouseWheelEventArgs.cs
- EventSetter.cs
- ModifiableIteratorCollection.cs
- TypeNameConverter.cs
- DeploymentExceptionMapper.cs
- CodePrimitiveExpression.cs
- ScrollViewer.cs
- DayRenderEvent.cs
- BuildManager.cs
- PaginationProgressEventArgs.cs
- TCPClient.cs
- LayoutTable.cs
- FlatButtonAppearance.cs
- TransactionState.cs
- XmlSignificantWhitespace.cs
- ParallelTimeline.cs
- _NegoStream.cs
- XmlILAnnotation.cs
- CapabilitiesUse.cs
- SerializationInfo.cs
- AuthorizationRule.cs
- ToolboxService.cs
- GlobalAclOperationRequirement.cs
- filewebrequest.cs
- NegationPusher.cs
- FSWPathEditor.cs
- DnsPermission.cs
- DbBuffer.cs
- Repeater.cs
- WrappedIUnknown.cs
- Metadata.cs
- RectangleConverter.cs
- shaperfactoryquerycacheentry.cs
- RegularExpressionValidator.cs
- DataBindingsDialog.cs
- BigInt.cs
- Asn1IntegerConverter.cs
- WorkflowHostingResponseContext.cs
- VectorCollection.cs
- HostingEnvironmentException.cs
- ClientTarget.cs
- InputProviderSite.cs
- _SSPIWrapper.cs
- NetPeerTcpBindingElement.cs
- HostProtectionException.cs
- SingleObjectCollection.cs
- CombinedGeometry.cs
- SecurityUniqueId.cs
- ListView.cs
- CodeTypeReference.cs
- ClassHandlersStore.cs
- CdpEqualityComparer.cs
- DataGridBoundColumn.cs
- _SafeNetHandles.cs
- MimeXmlImporter.cs
- TerminatorSinks.cs
- RegisteredScript.cs
- HtmlPhoneCallAdapter.cs
- ClientConfigPaths.cs
- CodeCompiler.cs
- PathFigureCollection.cs
- FileUpload.cs
- SelectionItemProviderWrapper.cs
- TransformDescriptor.cs
- AtomMaterializerLog.cs
- Component.cs
- CatalogPartCollection.cs
- QueryableDataSource.cs
- DBCommandBuilder.cs