Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DescendentsWalker.cs
- TextTreeFixupNode.cs
- InstallerTypeAttribute.cs
- EventSourceCreationData.cs
- MobileControlsSectionHelper.cs
- Partitioner.cs
- WorkflowTransactionService.cs
- precedingsibling.cs
- FixedDocumentPaginator.cs
- AccessViolationException.cs
- Models.cs
- BitmapDecoder.cs
- DataObjectAttribute.cs
- ButtonBaseAdapter.cs
- ToolStripArrowRenderEventArgs.cs
- DataServiceRequest.cs
- TCEAdapterGenerator.cs
- PropertyBuilder.cs
- ChildTable.cs
- UnsafeNativeMethods.cs
- IdentityReference.cs
- ParallelActivityDesigner.cs
- Utilities.cs
- WmlImageAdapter.cs
- SocketInformation.cs
- Visual3D.cs
- FlowDocumentScrollViewer.cs
- MappingModelBuildProvider.cs
- ConfigUtil.cs
- AsyncParams.cs
- EditorReuseAttribute.cs
- XmlStreamStore.cs
- SmtpNetworkElement.cs
- XmlSchemas.cs
- NamespaceEmitter.cs
- MembershipValidatePasswordEventArgs.cs
- SequenceDesigner.cs
- GridViewColumnCollection.cs
- DescriptionAttribute.cs
- ContextMenu.cs
- PriorityQueue.cs
- BitmapSizeOptions.cs
- ButtonField.cs
- BinaryCommonClasses.cs
- XmlToDatasetMap.cs
- NullRuntimeConfig.cs
- HMACSHA1.cs
- CharConverter.cs
- DataTableClearEvent.cs
- HotSpot.cs
- ClosableStream.cs
- LinkLabel.cs
- CodeTypeDelegate.cs
- MultiBinding.cs
- FeatureManager.cs
- SourceFileBuildProvider.cs
- ViewLoader.cs
- DataGridViewRowPostPaintEventArgs.cs
- XmlResolver.cs
- HashHelper.cs
- ACE.cs
- InputEventArgs.cs
- CompilerParameters.cs
- TextCharacters.cs
- MsmqIntegrationBindingElement.cs
- HttpListenerPrefixCollection.cs
- SocketStream.cs
- WebPartManagerInternals.cs
- XmlCodeExporter.cs
- CryptoStream.cs
- NamedObject.cs
- MethodToken.cs
- M3DUtil.cs
- LayoutInformation.cs
- ArrayWithOffset.cs
- GlyphTypeface.cs
- TokenBasedSetEnumerator.cs
- SpotLight.cs
- FormViewDeletedEventArgs.cs
- Process.cs
- ItemContainerGenerator.cs
- UnitControl.cs
- BitmapMetadataBlob.cs
- SoapHttpTransportImporter.cs
- EndpointDiscoveryMetadata.cs
- WebBrowserBase.cs
- GregorianCalendarHelper.cs
- GridSplitter.cs
- SqlServer2KCompatibilityAnnotation.cs
- LoginUtil.cs
- HttpListener.cs
- SendMailErrorEventArgs.cs
- StrongNameMembershipCondition.cs
- ClientBuildManager.cs
- HttpCacheVary.cs
- CultureSpecificCharacterBufferRange.cs
- ipaddressinformationcollection.cs
- VectorCollectionConverter.cs
- ToolBarOverflowPanel.cs
- FreezableOperations.cs