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
- HiddenFieldPageStatePersister.cs
- FileLoadException.cs
- ServiceOperationHelpers.cs
- GraphicsPathIterator.cs
- MachineKeyConverter.cs
- _ConnectOverlappedAsyncResult.cs
- EmptyElement.cs
- Token.cs
- ImageFormatConverter.cs
- ErrorWebPart.cs
- _Semaphore.cs
- TTSEngineProxy.cs
- DataGridViewBindingCompleteEventArgs.cs
- TextEffectCollection.cs
- QueryOutputWriter.cs
- CommandArguments.cs
- NativeWindow.cs
- WeakReferenceKey.cs
- OleStrCAMarshaler.cs
- FlagsAttribute.cs
- FaultReason.cs
- AnnotationHelper.cs
- DiscoveryClientProtocol.cs
- DataGridLinkButton.cs
- MonthChangedEventArgs.cs
- ConfigXmlElement.cs
- JournalEntry.cs
- RayMeshGeometry3DHitTestResult.cs
- CodeRegionDirective.cs
- ProcessModelSection.cs
- InheritanceAttribute.cs
- FixedSOMPageElement.cs
- GridViewRow.cs
- TextBoxAutomationPeer.cs
- MetadataFile.cs
- SeekStoryboard.cs
- ElementsClipboardData.cs
- HtmlGenericControl.cs
- RegularExpressionValidator.cs
- CodeMemberProperty.cs
- HTMLTextWriter.cs
- FontDriver.cs
- MultiView.cs
- Ops.cs
- GridView.cs
- PathSegmentCollection.cs
- ZipIOLocalFileBlock.cs
- PropertyPathWorker.cs
- ComboBox.cs
- SvcMapFileSerializer.cs
- InputLanguage.cs
- UrlAuthFailedErrorFormatter.cs
- StatusStrip.cs
- LostFocusEventManager.cs
- VisualStyleElement.cs
- SortDescriptionCollection.cs
- Directory.cs
- CustomDictionarySources.cs
- InheritanceAttribute.cs
- DateTimeValueSerializerContext.cs
- TextBox.cs
- DurableRuntimeValidator.cs
- JulianCalendar.cs
- SqlNotificationRequest.cs
- DbProviderFactory.cs
- PersonalizationState.cs
- DispatcherProcessingDisabled.cs
- Timer.cs
- WorkflowCommandExtensionItem.cs
- ArrangedElementCollection.cs
- TerminatorSinks.cs
- EdmProperty.cs
- COM2TypeInfoProcessor.cs
- DefaultValueConverter.cs
- DoubleIndependentAnimationStorage.cs
- Helpers.cs
- DynamicValueConverter.cs
- ProxyHwnd.cs
- SplashScreenNativeMethods.cs
- RoleServiceManager.cs
- NotificationContext.cs
- TypeTypeConverter.cs
- SymbolMethod.cs
- BuildDependencySet.cs
- StreamSecurityUpgradeAcceptorBase.cs
- DummyDataSource.cs
- ProxyWebPartConnectionCollection.cs
- Drawing.cs
- SurrogateEncoder.cs
- DocobjHost.cs
- FixedHighlight.cs
- IPipelineRuntime.cs
- WebPartDescription.cs
- ResourceExpression.cs
- InvokeGenerator.cs
- LinkedList.cs
- loginstatus.cs
- HttpSysSettings.cs
- SqlRetyper.cs
- SchemaNames.cs