Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1305376 / 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
- SubMenuStyle.cs
- InvalidPipelineStoreException.cs
- TaskSchedulerException.cs
- ProviderIncompatibleException.cs
- PrimitiveCodeDomSerializer.cs
- TypeUnloadedException.cs
- FlowLayout.cs
- AuditLevel.cs
- TimeZoneNotFoundException.cs
- DeclaredTypeElement.cs
- DrawListViewItemEventArgs.cs
- ScrollViewer.cs
- CmsInterop.cs
- NavigateUrlConverter.cs
- CryptoApi.cs
- BinaryEditor.cs
- SamlSecurityToken.cs
- TemplatedWizardStep.cs
- OleDbInfoMessageEvent.cs
- Vector3DCollectionValueSerializer.cs
- Lookup.cs
- SafeNativeMethods.cs
- AsymmetricSignatureDeformatter.cs
- HMACRIPEMD160.cs
- MetadataItemCollectionFactory.cs
- StructuralCache.cs
- GetLastErrorDetailsRequest.cs
- SystemIPAddressInformation.cs
- TextClipboardData.cs
- Environment.cs
- DeclarativeExpressionConditionDeclaration.cs
- Label.cs
- _FtpControlStream.cs
- FrameworkElementAutomationPeer.cs
- ObjectTag.cs
- UnsafeNativeMethods.cs
- BezierSegment.cs
- MemberPathMap.cs
- GetWinFXPath.cs
- XslCompiledTransform.cs
- LogConverter.cs
- CmsUtils.cs
- PartBasedPackageProperties.cs
- Stack.cs
- ConnectionPoolRegistry.cs
- FactoryId.cs
- X509CertificateCollection.cs
- BookmarkEventArgs.cs
- CompModSwitches.cs
- TraceUtils.cs
- CompositeFontFamily.cs
- _SslState.cs
- ObjectQuery.cs
- ToolStripItemClickedEventArgs.cs
- PrintEvent.cs
- DataSourceCache.cs
- TableColumn.cs
- ActivityXRefPropertyEditor.cs
- AsyncSerializedWorker.cs
- _OSSOCK.cs
- ExternalException.cs
- TailPinnedEventArgs.cs
- ObjectNotFoundException.cs
- SplitterEvent.cs
- HotSpotCollection.cs
- FactoryGenerator.cs
- EncoderNLS.cs
- ValidatingPropertiesEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- AvtEvent.cs
- WebPartUtil.cs
- PageOutputColor.cs
- ToolStripRenderer.cs
- Exceptions.cs
- LocationSectionRecord.cs
- ExpressionEditorAttribute.cs
- MarginsConverter.cs
- DiscoveryClientReferences.cs
- LoginName.cs
- XmlSchemaCollection.cs
- XmlStringTable.cs
- XamlSerializerUtil.cs
- ReadOnlyDictionary.cs
- LoginView.cs
- ValidationError.cs
- OperationResponse.cs
- Exceptions.cs
- AuthStoreRoleProvider.cs
- LoginViewDesigner.cs
- SingleBodyParameterMessageFormatter.cs
- TdsRecordBufferSetter.cs
- CodeSubDirectory.cs
- RecognizedPhrase.cs
- ToolStripRenderEventArgs.cs
- StructuredProperty.cs
- MergablePropertyAttribute.cs
- PolyLineSegment.cs
- MenuItem.cs
- RuntimeConfigurationRecord.cs
- Interlocked.cs