Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MobileComponentEditorPage.cs
- SqlLiftIndependentRowExpressions.cs
- SelectingProviderEventArgs.cs
- FastEncoderWindow.cs
- BaseCollection.cs
- NotifyCollectionChangedEventArgs.cs
- CanonicalizationDriver.cs
- WebPartPersonalization.cs
- SchemaCollectionPreprocessor.cs
- TextServicesManager.cs
- OrderByQueryOptionExpression.cs
- InvokeHandlers.cs
- QueuePathDialog.cs
- XmlSchemaSimpleTypeList.cs
- StructureChangedEventArgs.cs
- XmlAttributeProperties.cs
- QueryStatement.cs
- SqlCommand.cs
- InstanceDataCollection.cs
- datacache.cs
- FillBehavior.cs
- PropertyGroupDescription.cs
- Exception.cs
- InvalidChannelBindingException.cs
- CodeIdentifier.cs
- DataGridItem.cs
- FileStream.cs
- MsdtcWrapper.cs
- SymDocumentType.cs
- IndependentAnimationStorage.cs
- DateTimeOffset.cs
- TraceData.cs
- OleDbPermission.cs
- SplitterPanelDesigner.cs
- Clock.cs
- ObjectDisposedException.cs
- CommandHelper.cs
- LinearKeyFrames.cs
- GridPatternIdentifiers.cs
- ListDesigner.cs
- AddInToken.cs
- Messages.cs
- OLEDB_Enum.cs
- HwndSource.cs
- CompilerScope.Storage.cs
- ClientApiGenerator.cs
- ContextMenuStrip.cs
- PrimitiveSchema.cs
- TargetPerspective.cs
- VScrollProperties.cs
- StylusSystemGestureEventArgs.cs
- SqlClientWrapperSmiStream.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ScrollBar.cs
- PersonalizableTypeEntry.cs
- HostingEnvironmentException.cs
- CompositeDesignerAccessibleObject.cs
- HotCommands.cs
- XPathNode.cs
- TrustLevel.cs
- HandleRef.cs
- SelfIssuedAuthAsymmetricKey.cs
- HitTestResult.cs
- GPPOINTF.cs
- SmiEventSink.cs
- ButtonStandardAdapter.cs
- HttpCacheVaryByContentEncodings.cs
- ClrPerspective.cs
- RealizationContext.cs
- ComponentConverter.cs
- PassportAuthenticationEventArgs.cs
- OleDbPropertySetGuid.cs
- OpCellTreeNode.cs
- ProfileBuildProvider.cs
- IgnorePropertiesAttribute.cs
- XmlDocument.cs
- SqlHelper.cs
- DataServiceRequest.cs
- CustomGrammar.cs
- DBConcurrencyException.cs
- FieldBuilder.cs
- SafeWaitHandle.cs
- Mutex.cs
- QueuePathDialog.cs
- AuthorizationContext.cs
- ConfigXmlElement.cs
- thaishape.cs
- WorkflowItemPresenter.cs
- HttpListenerContext.cs
- ClientSession.cs
- TokenFactoryBase.cs
- TemplateXamlParser.cs
- EnumerableCollectionView.cs
- mediaclock.cs
- SqlDataSourceSummaryPanel.cs
- RedirectionProxy.cs
- ItemDragEvent.cs
- WebPartConnectVerb.cs
- SqlParameterCollection.cs
- CredentialCache.cs