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
- DataRecordInternal.cs
- Switch.cs
- CellConstantDomain.cs
- TypeNameHelper.cs
- RenderingEventArgs.cs
- TreeViewCancelEvent.cs
- OverrideMode.cs
- BuildProviderAppliesToAttribute.cs
- GroupBox.cs
- ConfigXmlSignificantWhitespace.cs
- Timer.cs
- PersonalizationStateInfo.cs
- UIElementHelper.cs
- UnsafeNativeMethodsPenimc.cs
- SerializerWriterEventHandlers.cs
- GetPageNumberCompletedEventArgs.cs
- TransactionContextManager.cs
- SchemaManager.cs
- RadioButtonPopupAdapter.cs
- StreamInfo.cs
- FieldBuilder.cs
- MediaSystem.cs
- XpsPartBase.cs
- InternalConfigRoot.cs
- WebConfigurationHostFileChange.cs
- DataGridViewTextBoxCell.cs
- XPathBinder.cs
- TextServicesManager.cs
- OpCellTreeNode.cs
- InvalidEnumArgumentException.cs
- SectionUpdates.cs
- WebControl.cs
- GPRECTF.cs
- TextSelectionHighlightLayer.cs
- DynamicILGenerator.cs
- TimeEnumHelper.cs
- MarshalByRefObject.cs
- InfoCardBaseException.cs
- DataGridViewCellStateChangedEventArgs.cs
- CfgArc.cs
- FormsAuthenticationCredentials.cs
- InternalBufferOverflowException.cs
- StrokeCollectionDefaultValueFactory.cs
- ClassHandlersStore.cs
- DataExpression.cs
- FrameworkRichTextComposition.cs
- selecteditemcollection.cs
- StructuralType.cs
- TemplateField.cs
- NonParentingControl.cs
- ISCIIEncoding.cs
- SystemNetworkInterface.cs
- DataGridCommandEventArgs.cs
- UrlPropertyAttribute.cs
- MaterialCollection.cs
- ExceptionRoutedEventArgs.cs
- NativeActivityContext.cs
- SoapProtocolImporter.cs
- ActivityExecutionContextCollection.cs
- GridViewItemAutomationPeer.cs
- ReadOnlyTernaryTree.cs
- DataGridColumnCollectionEditor.cs
- ReferencedType.cs
- ViewDesigner.cs
- ManipulationLogic.cs
- ArgumentException.cs
- RenderTargetBitmap.cs
- TypeValidationEventArgs.cs
- NetworkCredential.cs
- SQLInt16.cs
- NameTable.cs
- TemplateControlBuildProvider.cs
- COM2IDispatchConverter.cs
- LineBreak.cs
- SortedSetDebugView.cs
- FileDialogCustomPlacesCollection.cs
- DetailsViewUpdateEventArgs.cs
- XhtmlConformanceSection.cs
- BaseProcessor.cs
- FileVersionInfo.cs
- PropertyStore.cs
- DESCryptoServiceProvider.cs
- SchemaDeclBase.cs
- CustomTypeDescriptor.cs
- XmlRawWriter.cs
- _NegotiateClient.cs
- ButtonChrome.cs
- NumberEdit.cs
- ReachObjectContext.cs
- BasicHttpBindingElement.cs
- QueryExtender.cs
- SHA512CryptoServiceProvider.cs
- ToolboxDataAttribute.cs
- HttpPostClientProtocol.cs
- OperationAbortedException.cs
- TextDecorationCollection.cs
- SafeNativeMemoryHandle.cs
- VisualSerializer.cs
- BatchParser.cs
- SmiEventStream.cs