Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BooleanStorage.cs
- CodeCompiler.cs
- LocatorPart.cs
- Char.cs
- StatusBar.cs
- PersianCalendar.cs
- InputMethodStateTypeInfo.cs
- OrderByQueryOptionExpression.cs
- ClickablePoint.cs
- InvalidWMPVersionException.cs
- HtmlDocument.cs
- Visual3D.cs
- TimersDescriptionAttribute.cs
- TimeSpanSecondsConverter.cs
- ChannelSinkStacks.cs
- EventLog.cs
- ExistsInCollection.cs
- LinkButton.cs
- SoapExtensionReflector.cs
- GlyphInfoList.cs
- TouchDevice.cs
- PerformanceCounterPermission.cs
- XmlSchemaImport.cs
- ArraySortHelper.cs
- ToolStripContentPanelRenderEventArgs.cs
- UnsafeCollabNativeMethods.cs
- FixedPageAutomationPeer.cs
- CharacterMetricsDictionary.cs
- ItemList.cs
- CodeDirectoryCompiler.cs
- XmlSchemaExternal.cs
- _FtpControlStream.cs
- EventManager.cs
- TextRunProperties.cs
- sortedlist.cs
- SystemWebExtensionsSectionGroup.cs
- ImageConverter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- IndexerNameAttribute.cs
- FunctionImportElement.cs
- MetadataArtifactLoader.cs
- SqlClientPermission.cs
- ProbeRequestResponseAsyncResult.cs
- TraceSource.cs
- ZipIOModeEnforcingStream.cs
- ObjectMemberMapping.cs
- SimpleHandlerBuildProvider.cs
- ContextDataSourceView.cs
- StandardBindingElement.cs
- InfoCardSymmetricAlgorithm.cs
- DataObjectAttribute.cs
- MetabaseSettings.cs
- DataBindEngine.cs
- RequestCachePolicyConverter.cs
- Animatable.cs
- OutputScopeManager.cs
- Propagator.Evaluator.cs
- ClientBuildManagerCallback.cs
- SessionPageStatePersister.cs
- SqlConnectionPoolProviderInfo.cs
- TextTreeRootNode.cs
- InternalControlCollection.cs
- Parser.cs
- DriveInfo.cs
- TraceXPathNavigator.cs
- StorageScalarPropertyMapping.cs
- QueryOutputWriter.cs
- FileSystemInfo.cs
- NotCondition.cs
- RMPermissions.cs
- OleDbDataReader.cs
- ImageClickEventArgs.cs
- DataGridViewIntLinkedList.cs
- BamlResourceSerializer.cs
- SqlFormatter.cs
- SqlDataReaderSmi.cs
- SQLDateTimeStorage.cs
- EdmSchemaAttribute.cs
- WindowsBrush.cs
- SingleObjectCollection.cs
- TrustSection.cs
- ISAPIApplicationHost.cs
- DataServiceRequestOfT.cs
- DynamicScriptObject.cs
- GridViewColumnHeader.cs
- ColumnWidthChangedEvent.cs
- HttpListenerException.cs
- RelationshipEnd.cs
- DescriptionAttribute.cs
- EntityKeyElement.cs
- ComboBoxRenderer.cs
- NetSectionGroup.cs
- HtmlShimManager.cs
- XmlBinaryReader.cs
- LicenseProviderAttribute.cs
- IsolatedStorageFilePermission.cs
- OutputCacheSection.cs
- TransformerConfigurationWizardBase.cs
- DrawingBrush.cs
- MsmqBindingMonitor.cs