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
- DataContext.cs
- FileDataSourceCache.cs
- PropertyOverridesTypeEditor.cs
- Condition.cs
- CompiledQuery.cs
- UpnEndpointIdentity.cs
- DataControlLinkButton.cs
- PassportAuthenticationEventArgs.cs
- DataListItem.cs
- RegistrationProxy.cs
- UInt64Storage.cs
- WinCategoryAttribute.cs
- ViewBox.cs
- HorizontalAlignConverter.cs
- BaseCodeDomTreeGenerator.cs
- _LocalDataStore.cs
- RectangleConverter.cs
- BuilderElements.cs
- ErrorHandlerModule.cs
- AutoResizedEvent.cs
- Privilege.cs
- HyperLinkStyle.cs
- EventEntry.cs
- codemethodreferenceexpression.cs
- TypedColumnHandler.cs
- ConfigXmlText.cs
- EventData.cs
- Clause.cs
- DataGridViewDataErrorEventArgs.cs
- Triplet.cs
- EnumUnknown.cs
- DataBindingList.cs
- InputScopeConverter.cs
- DataGridViewTextBoxCell.cs
- DelegatingTypeDescriptionProvider.cs
- RegexStringValidator.cs
- Validator.cs
- StyleSelector.cs
- DynamicResourceExtension.cs
- ControlParameter.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ToggleButtonAutomationPeer.cs
- ChannelToken.cs
- ReachDocumentSequenceSerializer.cs
- AssertHelper.cs
- CollectionsUtil.cs
- ManagementObject.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- LinkLabelLinkClickedEvent.cs
- CodeCommentStatementCollection.cs
- StreamInfo.cs
- XamlValidatingReader.cs
- DynamicQueryableWrapper.cs
- ResumeStoryboard.cs
- SessionEndingEventArgs.cs
- ToolStripComboBox.cs
- RegexRunnerFactory.cs
- DrawingContextWalker.cs
- TextElementEditingBehaviorAttribute.cs
- PageCatalogPart.cs
- ArrayList.cs
- RawStylusInput.cs
- SQLDoubleStorage.cs
- PropertyInformation.cs
- Line.cs
- GraphicsPathIterator.cs
- PathGeometry.cs
- MethodToken.cs
- SHA512CryptoServiceProvider.cs
- AnimationLayer.cs
- XPathScanner.cs
- EventlogProvider.cs
- BufferedGraphics.cs
- ConfigurationCollectionAttribute.cs
- KeySpline.cs
- MsmqIntegrationOutputChannel.cs
- ViewCellSlot.cs
- KeyBinding.cs
- PolyBezierSegment.cs
- PartitionedStream.cs
- CodeExporter.cs
- SqlMethods.cs
- TextTreeFixupNode.cs
- AppDomainUnloadedException.cs
- DeviceFiltersSection.cs
- Expr.cs
- RecognizedAudio.cs
- ReferenceEqualityComparer.cs
- BindingEntityInfo.cs
- SqlNotificationEventArgs.cs
- TreeNodeSelectionProcessor.cs
- GlobalItem.cs
- FrameSecurityDescriptor.cs
- AutoScrollHelper.cs
- ContentPresenter.cs
- SqlDataSourceCommandEventArgs.cs
- SkewTransform.cs
- NativeMethods.cs
- XmlEncodedRawTextWriter.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs