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
- SecureUICommand.cs
- NumberEdit.cs
- PreservationFileWriter.cs
- TaskFileService.cs
- _CacheStreams.cs
- GridItem.cs
- LambdaCompiler.Binary.cs
- SqlClientWrapperSmiStreamChars.cs
- LicenseException.cs
- RadioButtonStandardAdapter.cs
- ExtensionWindowResizeGrip.cs
- PeerReferralPolicy.cs
- EventMappingSettingsCollection.cs
- Attribute.cs
- MarkupCompilePass1.cs
- BigInt.cs
- DataService.cs
- ParameterCollectionEditor.cs
- TypeReference.cs
- MatrixConverter.cs
- DoubleAnimation.cs
- HtmlMeta.cs
- StateValidator.cs
- SiteMapHierarchicalDataSourceView.cs
- TitleStyle.cs
- SmtpMail.cs
- SqlDataSource.cs
- Regex.cs
- UdpUtility.cs
- SplitContainer.cs
- AxisAngleRotation3D.cs
- AssemblyAttributes.cs
- controlskin.cs
- DataSvcMapFileSerializer.cs
- MsmqTransportElement.cs
- CheckedListBox.cs
- RemoveStoryboard.cs
- ManagementNamedValueCollection.cs
- ISSmlParser.cs
- listitem.cs
- SqlExpander.cs
- ContentTextAutomationPeer.cs
- mediaclock.cs
- ConfigurationSection.cs
- precedingsibling.cs
- Synchronization.cs
- ComponentConverter.cs
- DSASignatureFormatter.cs
- PolyLineSegmentFigureLogic.cs
- StoryFragments.cs
- ElementUtil.cs
- TiffBitmapDecoder.cs
- XmlSerializationGeneratedCode.cs
- CqlGenerator.cs
- TraceListeners.cs
- RelationshipWrapper.cs
- XslNumber.cs
- DynamicContractTypeBuilder.cs
- AVElementHelper.cs
- InstanceNormalEvent.cs
- TimeSpanStorage.cs
- EntityDataSourceContextCreatingEventArgs.cs
- MimeTypeMapper.cs
- BitmapEffectDrawingContent.cs
- ReliabilityContractAttribute.cs
- PocoEntityKeyStrategy.cs
- RSAOAEPKeyExchangeFormatter.cs
- DockAndAnchorLayout.cs
- SliderAutomationPeer.cs
- streamingZipPartStream.cs
- TimeSpanOrInfiniteConverter.cs
- IgnoreDeviceFilterElement.cs
- ConnectionInterfaceCollection.cs
- TopClause.cs
- RewritingProcessor.cs
- FormDesigner.cs
- DiagnosticsConfigurationHandler.cs
- RelationshipManager.cs
- CheckBox.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- HitTestDrawingContextWalker.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ToolboxDataAttribute.cs
- XmlElementElement.cs
- CustomTypeDescriptor.cs
- PEFileReader.cs
- ApplySecurityAndSendAsyncResult.cs
- FileBasedResourceGroveler.cs
- GACIdentityPermission.cs
- WindowsListViewItemCheckBox.cs
- ArrayTypeMismatchException.cs
- DataGridState.cs
- DatagridviewDisplayedBandsData.cs
- HttpListenerContext.cs
- EventHandlers.cs
- SyndicationFeedFormatter.cs
- DetailsViewInsertedEventArgs.cs
- X509Certificate.cs
- activationcontext.cs
- XmlSerializerFactory.cs