Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- InvalidEnumArgumentException.cs
- xml.cs
- StringUtil.cs
- DomainConstraint.cs
- DesignerHierarchicalDataSourceView.cs
- VisualTreeUtils.cs
- SweepDirectionValidation.cs
- DataBinding.cs
- FontSizeConverter.cs
- CacheRequest.cs
- ReferenceSchema.cs
- DockPanel.cs
- CopyOfAction.cs
- TextRangeSerialization.cs
- RegexGroup.cs
- PropertyEmitter.cs
- UniqueIdentifierService.cs
- MailWebEventProvider.cs
- ApplySecurityAndSendAsyncResult.cs
- MultiPropertyDescriptorGridEntry.cs
- RegistrationServices.cs
- safex509handles.cs
- EncryptedType.cs
- DetailsViewPageEventArgs.cs
- BaseValidatorDesigner.cs
- CookielessHelper.cs
- XmlChildNodes.cs
- BaseCodeDomTreeGenerator.cs
- ScriptingWebServicesSectionGroup.cs
- webbrowsersite.cs
- SmtpClient.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- WebControlAdapter.cs
- DiagnosticTraceSource.cs
- BrowserDefinition.cs
- ToggleButton.cs
- Matrix.cs
- PageRanges.cs
- PropertyMetadata.cs
- SqlPersonalizationProvider.cs
- DataSetMappper.cs
- AttributeCollection.cs
- Debug.cs
- TreeViewBindingsEditor.cs
- TextCompositionEventArgs.cs
- HelpEvent.cs
- Attributes.cs
- Cell.cs
- OdbcRowUpdatingEvent.cs
- Command.cs
- WindowsSolidBrush.cs
- EnumMember.cs
- BitHelper.cs
- LocalizabilityAttribute.cs
- SubpageParaClient.cs
- CommandPlan.cs
- CatalogZone.cs
- ExportException.cs
- Vector.cs
- ClientSettingsStore.cs
- FixedPage.cs
- NamespaceList.cs
- LinkedList.cs
- AspNetHostingPermission.cs
- StreamWriter.cs
- DetailsViewPageEventArgs.cs
- ListControl.cs
- Validator.cs
- ProfilePropertyNameValidator.cs
- AlternateView.cs
- DataRelationCollection.cs
- GZipStream.cs
- ContentTextAutomationPeer.cs
- ContentPlaceHolder.cs
- Cursors.cs
- TextSelectionProcessor.cs
- NativeMethods.cs
- SqlWebEventProvider.cs
- Italic.cs
- FixedSOMContainer.cs
- X509Chain.cs
- IApplicationTrustManager.cs
- ApplicationManager.cs
- EdmComplexTypeAttribute.cs
- StringValidatorAttribute.cs
- VirtualDirectoryMappingCollection.cs
- DbTypeMap.cs
- Matrix3DConverter.cs
- WeakReferenceList.cs
- PolyLineSegment.cs
- ObjectDataSource.cs
- DirectoryObjectSecurity.cs
- PrimitiveType.cs
- ThumbButtonInfo.cs
- ListBindableAttribute.cs
- XmlUrlResolver.cs
- WebHttpEndpointElement.cs
- ObjectSet.cs
- GeneralTransform3DCollection.cs
- ObjectCloneHelper.cs