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
- DataPagerFieldItem.cs
- PackagePartCollection.cs
- DrawingGroupDrawingContext.cs
- UnsafeNativeMethods.cs
- ChannelAcceptor.cs
- SeekableReadStream.cs
- DataViewSettingCollection.cs
- DataPagerCommandEventArgs.cs
- CompositeScriptReference.cs
- HtmlShim.cs
- SelectionWordBreaker.cs
- AssemblyResourceLoader.cs
- PolyLineSegmentFigureLogic.cs
- HebrewCalendar.cs
- ComponentDispatcher.cs
- Axis.cs
- EditorBrowsableAttribute.cs
- ThemeDirectoryCompiler.cs
- StorageConditionPropertyMapping.cs
- CustomSignedXml.cs
- ExpressionBindingCollection.cs
- AttachmentCollection.cs
- ComponentEvent.cs
- WebBrowserNavigatedEventHandler.cs
- StickyNoteHelper.cs
- ReverseComparer.cs
- ThicknessAnimation.cs
- CompatibleIComparer.cs
- DataGridViewSelectedCellCollection.cs
- InternalBase.cs
- PackWebResponse.cs
- ObjRef.cs
- KnownColorTable.cs
- IdnElement.cs
- NotificationContext.cs
- TextModifier.cs
- PrimitiveType.cs
- TableLayoutPanelResizeGlyph.cs
- MessageDesigner.cs
- StackBuilderSink.cs
- ItemTypeToolStripMenuItem.cs
- ExtendedProperty.cs
- MatrixAnimationUsingPath.cs
- EmptyImpersonationContext.cs
- TriggerActionCollection.cs
- CompilationPass2Task.cs
- FormsIdentity.cs
- WebColorConverter.cs
- CacheMode.cs
- StrokeFIndices.cs
- ModifierKeysValueSerializer.cs
- AutomationInteropProvider.cs
- ConsumerConnectionPointCollection.cs
- InheritanceContextChangedEventManager.cs
- HashMembershipCondition.cs
- LocalIdKeyIdentifierClause.cs
- EntityDataSourceWrapper.cs
- BaseDataList.cs
- HttpNamespaceReservationInstallComponent.cs
- RepeaterCommandEventArgs.cs
- DesignerTransactionCloseEvent.cs
- XmlTextAttribute.cs
- MatrixIndependentAnimationStorage.cs
- XamlDesignerSerializationManager.cs
- AttributeProviderAttribute.cs
- InkCollectionBehavior.cs
- HtmlInputHidden.cs
- EncodingDataItem.cs
- DataBoundControlHelper.cs
- DataContext.cs
- mactripleDES.cs
- ClassHandlersStore.cs
- StateDesigner.Helpers.cs
- ScrollBarAutomationPeer.cs
- FixedTextBuilder.cs
- CodeCommentStatementCollection.cs
- ScriptReference.cs
- PeerNearMe.cs
- Subtree.cs
- compensatingcollection.cs
- NativeMethods.cs
- ControlType.cs
- WindowsProgressbar.cs
- ProcessHostMapPath.cs
- cache.cs
- Cursor.cs
- XslAstAnalyzer.cs
- GuidelineSet.cs
- RenderOptions.cs
- DefaultParameterValueAttribute.cs
- Matrix3D.cs
- GlobalEventManager.cs
- prompt.cs
- ConfigurationLoader.cs
- DataControlReferenceCollection.cs
- SoapTypeAttribute.cs
- GlobalizationSection.cs
- StylusCollection.cs
- RelationshipEndMember.cs
- IndentedTextWriter.cs