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
- DataListItem.cs
- TemplateBuilder.cs
- OperatingSystem.cs
- UnaryExpression.cs
- DocumentPageView.cs
- SystemIcons.cs
- ScriptModule.cs
- MenuBase.cs
- Viewport3DVisual.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- HMACSHA512.cs
- WorkflowCompensationBehavior.cs
- EntityProviderServices.cs
- RectAnimationBase.cs
- GlobalEventManager.cs
- TextMarkerSource.cs
- WinHttpWebProxyFinder.cs
- TrackingMemoryStreamFactory.cs
- CorrelationToken.cs
- GridView.cs
- GraphicsContext.cs
- OleAutBinder.cs
- DataTableReaderListener.cs
- ChangeInterceptorAttribute.cs
- GlyphCollection.cs
- SmiXetterAccessMap.cs
- SerializationTrace.cs
- XmlIncludeAttribute.cs
- ArrayTypeMismatchException.cs
- COMException.cs
- OdbcParameterCollection.cs
- QueryStringConverter.cs
- OrderingQueryOperator.cs
- FontNamesConverter.cs
- Merger.cs
- WSDualHttpBindingElement.cs
- PrimitiveXmlSerializers.cs
- KeyGesture.cs
- FormatConvertedBitmap.cs
- CommandHelper.cs
- oledbconnectionstring.cs
- ConstraintConverter.cs
- TreeNode.cs
- XmlLinkedNode.cs
- CleanUpVirtualizedItemEventArgs.cs
- HierarchicalDataBoundControl.cs
- PointValueSerializer.cs
- DetailsViewInsertedEventArgs.cs
- ZoneMembershipCondition.cs
- PKCS1MaskGenerationMethod.cs
- XsdDateTime.cs
- TypeResolver.cs
- PropertyTabChangedEvent.cs
- NameTable.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Nullable.cs
- WindowsRichEdit.cs
- Int64KeyFrameCollection.cs
- LineGeometry.cs
- WmlPhoneCallAdapter.cs
- TextWriter.cs
- SelectionProviderWrapper.cs
- QilList.cs
- EntityPropertyMappingAttribute.cs
- WindowsContainer.cs
- RegistryKey.cs
- SafeNativeMethods.cs
- SignHashRequest.cs
- SHA256Managed.cs
- AttributeCollection.cs
- SecuritySessionClientSettings.cs
- ClickablePoint.cs
- InputMethodStateChangeEventArgs.cs
- IERequestCache.cs
- TextDecorationLocationValidation.cs
- DragDeltaEventArgs.cs
- FocusWithinProperty.cs
- ToolStripItemRenderEventArgs.cs
- ImportCatalogPart.cs
- DbDataSourceEnumerator.cs
- GatewayDefinition.cs
- CacheMode.cs
- ContainerUtilities.cs
- WorkflowServiceBehavior.cs
- HtmlHistory.cs
- BitSet.cs
- parserscommon.cs
- odbcmetadatafactory.cs
- StateManagedCollection.cs
- HttpCapabilitiesSectionHandler.cs
- ArrayList.cs
- DbMetaDataFactory.cs
- DataControlPagerLinkButton.cs
- CodeAttachEventStatement.cs
- EventLogEntry.cs
- ISCIIEncoding.cs
- PropertyValueUIItem.cs
- TextWriter.cs
- MailMessage.cs
- HttpHandlerActionCollection.cs