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
- ControlBuilderAttribute.cs
- XmlUtil.cs
- TileModeValidation.cs
- CellPartitioner.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- TextSpanModifier.cs
- LogEntryUtils.cs
- StreamResourceInfo.cs
- RsaEndpointIdentity.cs
- DataContractSerializerElement.cs
- Binding.cs
- GAC.cs
- XmlSchemaGroupRef.cs
- InstanceDescriptor.cs
- VirtualDirectoryMappingCollection.cs
- XmlEncodedRawTextWriter.cs
- EUCJPEncoding.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DispatcherHooks.cs
- PrtTicket_Editor.cs
- HtmlInputButton.cs
- PassportPrincipal.cs
- Message.cs
- ArgumentException.cs
- __Error.cs
- FilteredDataSetHelper.cs
- HttpStreamMessage.cs
- ProxyWebPart.cs
- CellQuery.cs
- JsonDeserializer.cs
- TouchesOverProperty.cs
- X509CertificateChain.cs
- StreamWriter.cs
- RemoteWebConfigurationHostServer.cs
- CustomErrorsSection.cs
- Crypto.cs
- GacUtil.cs
- ListSortDescriptionCollection.cs
- RootProfilePropertySettingsCollection.cs
- ScriptComponentDescriptor.cs
- OleDbCommandBuilder.cs
- PropertyPathWorker.cs
- PageParserFilter.cs
- UniqueTransportManagerRegistration.cs
- XmlNodeReader.cs
- ConnectionStringsSection.cs
- TableRow.cs
- XamlTemplateSerializer.cs
- FixedSchema.cs
- UInt16.cs
- DocumentGrid.cs
- ValidationManager.cs
- ToolStripItemEventArgs.cs
- coordinator.cs
- OneOf.cs
- SpeechRecognitionEngine.cs
- webproxy.cs
- CapabilitiesUse.cs
- HeaderedContentControl.cs
- MoveSizeWinEventHandler.cs
- RunClient.cs
- ResourceType.cs
- Bind.cs
- SafeFileHandle.cs
- AnnotationResourceCollection.cs
- _NetRes.cs
- HandlerMappingMemo.cs
- EventLog.cs
- base64Transforms.cs
- DebugController.cs
- SafeFileMapViewHandle.cs
- FontNamesConverter.cs
- CompiledELinqQueryState.cs
- Validator.cs
- CompensateDesigner.cs
- CollectionEditVerbManager.cs
- StructuredTypeEmitter.cs
- ServicePointManagerElement.cs
- MarshalByValueComponent.cs
- SplitterEvent.cs
- KeyInterop.cs
- RunInstallerAttribute.cs
- ClickablePoint.cs
- PresentationAppDomainManager.cs
- Predicate.cs
- ResXResourceSet.cs
- SequentialUshortCollection.cs
- MessageSmuggler.cs
- MdImport.cs
- CharacterBufferReference.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- MultiTrigger.cs
- ToolboxItemFilterAttribute.cs
- DataRecordInternal.cs
- ThreadExceptionDialog.cs
- ContainerAction.cs
- EmptyControlCollection.cs
- FileDialog_Vista_Interop.cs
- NavigationCommands.cs
- Cursors.cs