Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontFamilyValueSerializer.cs
- ContentElementCollection.cs
- ConfigurationValidatorBase.cs
- TextBox.cs
- ProcessThread.cs
- HtmlTableCell.cs
- MultiView.cs
- SizeAnimationBase.cs
- WindowsFormsHostPropertyMap.cs
- Model3D.cs
- StringCollectionMarkupSerializer.cs
- RuntimeCompatibilityAttribute.cs
- TemplateInstanceAttribute.cs
- SctClaimSerializer.cs
- OleDbWrapper.cs
- WebConfigurationFileMap.cs
- CompiledIdentityConstraint.cs
- QueryExpression.cs
- DeviceSpecificChoiceCollection.cs
- WhitespaceSignificantCollectionAttribute.cs
- CodeExporter.cs
- LogSwitch.cs
- OverflowException.cs
- translator.cs
- LayoutManager.cs
- FramingEncoders.cs
- StrokeNodeOperations.cs
- FileCodeGroup.cs
- HtmlElementErrorEventArgs.cs
- Parser.cs
- ColorBlend.cs
- SQLByteStorage.cs
- printdlgexmarshaler.cs
- ListViewItem.cs
- CompilerScope.cs
- ObfuscateAssemblyAttribute.cs
- PrivateFontCollection.cs
- StrokeRenderer.cs
- SiteMapPath.cs
- WindowsProgressbar.cs
- Currency.cs
- ServiceMemoryGates.cs
- HelpEvent.cs
- StringCollectionMarkupSerializer.cs
- XmlNamedNodeMap.cs
- ListChangedEventArgs.cs
- Timer.cs
- TemplateParser.cs
- WizardSideBarListControlItemEventArgs.cs
- Directory.cs
- ConditionalAttribute.cs
- PasswordBox.cs
- NumericUpDownAcceleration.cs
- RegisteredArrayDeclaration.cs
- DrawingState.cs
- EventLogEntryCollection.cs
- TypedReference.cs
- SqlCacheDependencyDatabase.cs
- CharacterShapingProperties.cs
- UserControlDesigner.cs
- DbCommandTree.cs
- LicenseManager.cs
- XmlSchemaSimpleContent.cs
- RegistryDataKey.cs
- DataGridViewColumnEventArgs.cs
- FontResourceCache.cs
- NextPreviousPagerField.cs
- AsyncCallback.cs
- Component.cs
- ThousandthOfEmRealDoubles.cs
- AspCompat.cs
- TiffBitmapDecoder.cs
- IsolatedStorage.cs
- PathFigureCollectionConverter.cs
- StylusTip.cs
- SQLDouble.cs
- DataServiceContext.cs
- StringConverter.cs
- Deserializer.cs
- AddInEnvironment.cs
- HashCodeCombiner.cs
- MessageFault.cs
- _AutoWebProxyScriptHelper.cs
- SelectorAutomationPeer.cs
- WebPartConnectionsConnectVerb.cs
- ISAPIWorkerRequest.cs
- ErrorWebPart.cs
- WaitHandle.cs
- SchemaConstraints.cs
- DesignConnectionCollection.cs
- PageBuildProvider.cs
- SafeHandles.cs
- ValidationResult.cs
- RepeatButtonAutomationPeer.cs
- WindowsListViewGroupHelper.cs
- ParentQuery.cs
- InvalidOperationException.cs
- FontDialog.cs
- PropertyRef.cs
- LoginUtil.cs