Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- initElementDictionary.cs
- EndPoint.cs
- OleDbEnumerator.cs
- MarkupCompilePass2.cs
- Constants.cs
- ProxyHelper.cs
- SymbolType.cs
- XmlNavigatorStack.cs
- StrokeDescriptor.cs
- DataGridRelationshipRow.cs
- GenericEnumerator.cs
- ObjectSerializerFactory.cs
- DrawingAttributeSerializer.cs
- UrlMappingsSection.cs
- CookieHandler.cs
- ParameterSubsegment.cs
- WebPartDisplayModeCancelEventArgs.cs
- ApplicationBuildProvider.cs
- ObjectViewEntityCollectionData.cs
- TdsParser.cs
- DrawListViewColumnHeaderEventArgs.cs
- EmptyControlCollection.cs
- EntityEntry.cs
- Visitor.cs
- WebPartManagerInternals.cs
- HiddenFieldPageStatePersister.cs
- Hashtable.cs
- RubberbandSelector.cs
- RangeContentEnumerator.cs
- TextBoxDesigner.cs
- OutOfProcStateClientManager.cs
- AssertFilter.cs
- DataGridRowDetailsEventArgs.cs
- TextLineBreak.cs
- MD5CryptoServiceProvider.cs
- WebFaultException.cs
- ToolStripDropDown.cs
- UniqueEventHelper.cs
- ColorIndependentAnimationStorage.cs
- Site.cs
- SchemaMapping.cs
- PrintDialogException.cs
- ObjRef.cs
- FormView.cs
- XmlSignatureProperties.cs
- PersonalizableAttribute.cs
- CfgParser.cs
- XmlSchemaObjectTable.cs
- Table.cs
- AppSettingsExpressionBuilder.cs
- LineInfo.cs
- _AutoWebProxyScriptHelper.cs
- Setter.cs
- EntityStoreSchemaFilterEntry.cs
- ConstraintCollection.cs
- OptimalTextSource.cs
- XPathNodeHelper.cs
- NullableFloatSumAggregationOperator.cs
- AddInController.cs
- XPathCompileException.cs
- HttpUnhandledOperationInvoker.cs
- XmlMembersMapping.cs
- IntegrationExceptionEventArgs.cs
- EntityConnection.cs
- SecurityUtils.cs
- AggregateNode.cs
- WebPartVerbCollection.cs
- WorkflowMessageEventHandler.cs
- EndEvent.cs
- RepeatEnumerable.cs
- XmlSchemaAnyAttribute.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MULTI_QI.cs
- MetadataItemEmitter.cs
- ScriptDescriptor.cs
- DaylightTime.cs
- DirectoryNotFoundException.cs
- ExpandSegment.cs
- TemplatedControlDesigner.cs
- AutomationEventArgs.cs
- FontSource.cs
- XamlStream.cs
- NamespaceListProperty.cs
- PropertyHelper.cs
- ConsumerConnectionPoint.cs
- UnsafeNativeMethodsPenimc.cs
- RightsManagementEncryptionTransform.cs
- Variable.cs
- Freezable.cs
- Dictionary.cs
- GraphicsContainer.cs
- ListViewUpdatedEventArgs.cs
- DesignerActionService.cs
- Synchronization.cs
- FileLogRecordHeader.cs
- configsystem.cs
- InvalidPropValue.cs
- PeerNearMe.cs
- ProfilePropertyMetadata.cs
- AttributeData.cs