Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SafeSecurityHandles.cs
- DllNotFoundException.cs
- ResourceAssociationSetEnd.cs
- ScrollableControlDesigner.cs
- CheckedListBox.cs
- WorkflowTraceTransfer.cs
- FixedSOMPageElement.cs
- AvTraceFormat.cs
- NameTable.cs
- Options.cs
- Msmq4SubqueuePoisonHandler.cs
- HideDisabledControlAdapter.cs
- StorageInfo.cs
- Tile.cs
- ImplicitInputBrush.cs
- PeerNodeAddress.cs
- Object.cs
- SamlEvidence.cs
- TextBoxView.cs
- SqlClientWrapperSmiStreamChars.cs
- TrackingDataItemValue.cs
- BufferCache.cs
- SystemFonts.cs
- FileDialog.cs
- AmbientValueAttribute.cs
- ParamArrayAttribute.cs
- SerializerProvider.cs
- ProfileEventArgs.cs
- SoapReflectionImporter.cs
- SingleSelectRootGridEntry.cs
- DataGridViewCellFormattingEventArgs.cs
- SqlOuterApplyReducer.cs
- nulltextcontainer.cs
- QilCloneVisitor.cs
- ReversePositionQuery.cs
- EnumerableCollectionView.cs
- SystemTcpConnection.cs
- CookieProtection.cs
- BinHexEncoding.cs
- GroupItemAutomationPeer.cs
- xdrvalidator.cs
- ContentPosition.cs
- AuthorizationPolicyTypeElementCollection.cs
- ExceptionAggregator.cs
- ToolStripGrip.cs
- _KerberosClient.cs
- DataKey.cs
- AsymmetricCryptoHandle.cs
- CompletionProxy.cs
- Trustee.cs
- OutputWindow.cs
- TextBreakpoint.cs
- ProvidersHelper.cs
- BitmapFrame.cs
- DataGridViewColumnStateChangedEventArgs.cs
- StylusPointPropertyId.cs
- Byte.cs
- ScrollBar.cs
- NamedServiceModelExtensionCollectionElement.cs
- FontUnit.cs
- ParserContext.cs
- CodeAssignStatement.cs
- XmlDictionaryReaderQuotasElement.cs
- XmlChildEnumerator.cs
- SettingsProperty.cs
- JpegBitmapDecoder.cs
- DataTemplateKey.cs
- ObjectRef.cs
- columnmapkeybuilder.cs
- WebAdminConfigurationHelper.cs
- ToolStripContentPanel.cs
- ServicePointManagerElement.cs
- RotateTransform.cs
- ValueCollectionParameterReader.cs
- Dynamic.cs
- IpcClientManager.cs
- ApplicationHost.cs
- HtmlInputCheckBox.cs
- TextServicesProperty.cs
- WorkflowExecutor.cs
- RetrieveVirtualItemEventArgs.cs
- ListSourceHelper.cs
- PerformanceCounterPermissionEntry.cs
- ListViewDeletedEventArgs.cs
- DefaultValueTypeConverter.cs
- PageSettings.cs
- IdnElement.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- XmlEnumAttribute.cs
- SubclassTypeValidatorAttribute.cs
- ToolStripStatusLabel.cs
- JournalNavigationScope.cs
- ButtonFlatAdapter.cs
- InvalidWorkflowException.cs
- EnumBuilder.cs
- ActiveXContainer.cs
- ProtocolsConfigurationHandler.cs
- ConfigDefinitionUpdates.cs
- TypeSystemProvider.cs
- LocalValueEnumerator.cs