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
- BinaryNode.cs
- WaitHandleCannotBeOpenedException.cs
- Attribute.cs
- Error.cs
- AuthorizationRule.cs
- JournalEntryListConverter.cs
- StackSpiller.Bindings.cs
- OdbcConnectionFactory.cs
- WebPartAuthorizationEventArgs.cs
- AdapterUtil.cs
- ClonableStack.cs
- TiffBitmapEncoder.cs
- UserInitiatedNavigationPermission.cs
- ResXResourceWriter.cs
- LogArchiveSnapshot.cs
- TableChangeProcessor.cs
- PieceNameHelper.cs
- SequentialUshortCollection.cs
- AutomationProperty.cs
- M3DUtil.cs
- ChtmlCalendarAdapter.cs
- SoapElementAttribute.cs
- IndexedString.cs
- WebPartVerbsEventArgs.cs
- ErrorHandler.cs
- IisTraceWebEventProvider.cs
- GenericAuthenticationEventArgs.cs
- BasicExpressionVisitor.cs
- SynchronizedCollection.cs
- LogLogRecord.cs
- DetailsViewAutoFormat.cs
- TextModifier.cs
- XmlDataLoader.cs
- CharKeyFrameCollection.cs
- UTF8Encoding.cs
- WebPartUserCapability.cs
- TextBoxAutoCompleteSourceConverter.cs
- TextParagraphCache.cs
- SoapInteropTypes.cs
- HttpInputStream.cs
- MemoryMappedView.cs
- PixelFormatConverter.cs
- TrustLevel.cs
- StylusOverProperty.cs
- FloaterBaseParagraph.cs
- ExpressionBuilderContext.cs
- UIPropertyMetadata.cs
- RootNamespaceAttribute.cs
- TextServicesHost.cs
- IOThreadScheduler.cs
- TextReader.cs
- documentsequencetextpointer.cs
- ItemType.cs
- ObjectSet.cs
- MetadataArtifactLoaderResource.cs
- SqlTypeSystemProvider.cs
- CodeThrowExceptionStatement.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MdiWindowListItemConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- StrongNameKeyPair.cs
- TagNameToTypeMapper.cs
- JapaneseCalendar.cs
- DesignerRegionMouseEventArgs.cs
- UIElementParaClient.cs
- MetadataHelper.cs
- Matrix.cs
- ClientRuntimeConfig.cs
- ArrangedElementCollection.cs
- InvalidDataContractException.cs
- DbCommandDefinition.cs
- ActivityExecutor.cs
- OperandQuery.cs
- NativeMethods.cs
- DbBuffer.cs
- NamespaceQuery.cs
- ACE.cs
- DetailsViewActionList.cs
- PersistenceProviderFactory.cs
- OLEDB_Util.cs
- WriteFileContext.cs
- AssociationEndMember.cs
- TraceSwitch.cs
- ProxyManager.cs
- SimpleHandlerBuildProvider.cs
- TemplateComponentConnector.cs
- CrossSiteScriptingValidation.cs
- XmlParser.cs
- TransactedBatchingBehavior.cs
- AttributeUsageAttribute.cs
- WorkflowMarkupSerializationManager.cs
- SpinLock.cs
- TCEAdapterGenerator.cs
- SelectedCellsChangedEventArgs.cs
- Predicate.cs
- recordstatescratchpad.cs
- ExceptionNotification.cs
- DbConnectionHelper.cs
- Button.cs
- ExecutionContext.cs