Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyEmitter.cs
- ArrayList.cs
- BitmapEffectGeneralTransform.cs
- InvokeBinder.cs
- FloaterParagraph.cs
- SecureStringHasher.cs
- ObjectQueryProvider.cs
- _DomainName.cs
- FileDialog.cs
- TableLayout.cs
- HttpCachePolicyElement.cs
- SqlDataRecord.cs
- LambdaCompiler.Unary.cs
- XhtmlStyleClass.cs
- ProtocolsConfigurationHandler.cs
- Model3DCollection.cs
- ArglessEventHandlerProxy.cs
- Number.cs
- TerminatorSinks.cs
- TextRangeEditTables.cs
- DrawingVisual.cs
- DataControlFieldHeaderCell.cs
- AttributeQuery.cs
- ProfileManager.cs
- VisualState.cs
- AccessibilityHelperForVista.cs
- PropertyEmitterBase.cs
- RealizationContext.cs
- HtmlString.cs
- PageVisual.cs
- DbCommandDefinition.cs
- BooleanSwitch.cs
- HTTPNotFoundHandler.cs
- StringStorage.cs
- Helper.cs
- TextServicesPropertyRanges.cs
- SessionStateContainer.cs
- ManipulationStartingEventArgs.cs
- HttpListenerRequestUriBuilder.cs
- WebPartVerbsEventArgs.cs
- GeometryDrawing.cs
- CustomValidator.cs
- SQLInt32.cs
- SortQuery.cs
- Constants.cs
- WindowsSysHeader.cs
- SqlCacheDependencyDatabase.cs
- ellipse.cs
- UpdateRecord.cs
- RichTextBox.cs
- CodeGeneratorOptions.cs
- Optimizer.cs
- Calendar.cs
- CompilationRelaxations.cs
- WindowsAuthenticationModule.cs
- MenuStrip.cs
- XamlPathDataSerializer.cs
- KeyConverter.cs
- ViewValidator.cs
- Rotation3D.cs
- HttpSysSettings.cs
- AppDomainManager.cs
- EntityReference.cs
- XmlSchemaAll.cs
- StrokeCollection2.cs
- DictionaryEditChange.cs
- StackSpiller.cs
- TextEncodedRawTextWriter.cs
- Paragraph.cs
- ToolStripPanelRenderEventArgs.cs
- CryptoProvider.cs
- CharAnimationBase.cs
- DecoderFallback.cs
- ClrPerspective.cs
- WpfWebRequestHelper.cs
- LockedBorderGlyph.cs
- _NativeSSPI.cs
- XappLauncher.cs
- RepeaterCommandEventArgs.cs
- ExpandSegmentCollection.cs
- RtfToXamlReader.cs
- DiagnosticSection.cs
- DataGridPageChangedEventArgs.cs
- ProviderConnectionPoint.cs
- Attributes.cs
- RpcCryptoContext.cs
- QueryOpeningEnumerator.cs
- SplitterCancelEvent.cs
- FixedDocumentPaginator.cs
- SystemIPInterfaceProperties.cs
- RuntimeUtils.cs
- ResourceDescriptionAttribute.cs
- ValidationSummaryDesigner.cs
- NativeMethodsCLR.cs
- ActivityExecutorOperation.cs
- ResourceManagerWrapper.cs
- GestureRecognizer.cs
- EmptyEnumerator.cs
- DispatchChannelSink.cs
- CodeSnippetCompileUnit.cs