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 / InstallerTypeAttribute.cs / 1 / InstallerTypeAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ // SECREVIEW: Remove this attribute once bug#411889 is fixed. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2113:SecureLateBindingMethods", Scope="member", Target="System.ComponentModel.InstallerTypeAttribute.get_InstallerType():System.Type")] namespace System.ComponentModel { using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public class InstallerTypeAttribute : Attribute { string _typeName; ///Specifies the installer /// to use for a type to install components. ////// public InstallerTypeAttribute(Type installerType) { _typeName = installerType.AssemblyQualifiedName; } ///Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class. ////// public InstallerTypeAttribute(string typeName) { _typeName = typeName; } ///[To be supplied.] ////// public virtual Type InstallerType { get { return Type.GetType(_typeName); } } public override bool Equals(object obj) { if (obj == this) { return true; } InstallerTypeAttribute other = obj as InstallerTypeAttribute; return (other != null) && other._typeName == _typeName; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the /// type of installer associated with this attribute. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ // SECREVIEW: Remove this attribute once bug#411889 is fixed. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2113:SecureLateBindingMethods", Scope="member", Target="System.ComponentModel.InstallerTypeAttribute.get_InstallerType():System.Type")] namespace System.ComponentModel { using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public class InstallerTypeAttribute : Attribute { string _typeName; ///Specifies the installer /// to use for a type to install components. ////// public InstallerTypeAttribute(Type installerType) { _typeName = installerType.AssemblyQualifiedName; } ///Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class. ////// public InstallerTypeAttribute(string typeName) { _typeName = typeName; } ///[To be supplied.] ////// public virtual Type InstallerType { get { return Type.GetType(_typeName); } } public override bool Equals(object obj) { if (obj == this) { return true; } InstallerTypeAttribute other = obj as InstallerTypeAttribute; return (other != null) && other._typeName == _typeName; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the /// type of installer associated with this attribute. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageQueueAccessControlEntry.cs
- XamlReader.cs
- ProfilePropertySettingsCollection.cs
- TextTreeUndo.cs
- Parameter.cs
- PropertyTab.cs
- ObjectListItemCollection.cs
- DoubleUtil.cs
- QuaternionAnimationUsingKeyFrames.cs
- XPathBinder.cs
- Size.cs
- MultilineStringConverter.cs
- _ShellExpression.cs
- IPGlobalProperties.cs
- GeneralTransform3DTo2D.cs
- UpdatePanelTrigger.cs
- TargetControlTypeAttribute.cs
- GeneralTransform3DTo2D.cs
- ScaleTransform.cs
- METAHEADER.cs
- AccessibilityHelperForVista.cs
- BindingContext.cs
- MasterPageCodeDomTreeGenerator.cs
- PerformanceCounterPermissionEntry.cs
- Label.cs
- EntityDataSourceView.cs
- OpCodes.cs
- ClientFormsIdentity.cs
- ObjectAssociationEndMapping.cs
- WindowsGrip.cs
- LayoutSettings.cs
- CrossAppDomainChannel.cs
- SystemIPAddressInformation.cs
- BuildManagerHost.cs
- DynamicMetaObjectBinder.cs
- SmtpNtlmAuthenticationModule.cs
- BindingCollection.cs
- WrapPanel.cs
- As.cs
- UrlPath.cs
- ContextBase.cs
- Intellisense.cs
- HtmlCommandAdapter.cs
- SchemaNotation.cs
- ControlDesigner.cs
- XmlILConstructAnalyzer.cs
- PropertyTabAttribute.cs
- MdiWindowListItemConverter.cs
- SimpleLine.cs
- ComAdminInterfaces.cs
- SmiMetaDataProperty.cs
- AnonymousIdentificationSection.cs
- StatusBar.cs
- TransactionBridge.cs
- DataAccessor.cs
- Stackframe.cs
- X509Chain.cs
- LocalBuilder.cs
- ImportOptions.cs
- XslException.cs
- DebuggerAttributes.cs
- DataTableMappingCollection.cs
- SqlBooleanMismatchVisitor.cs
- TrustSection.cs
- Bits.cs
- InternalConfigConfigurationFactory.cs
- OpenTypeLayoutCache.cs
- ConnectionString.cs
- InvariantComparer.cs
- NameObjectCollectionBase.cs
- CorrelationService.cs
- InputLanguage.cs
- HashCodeCombiner.cs
- validation.cs
- FormDocumentDesigner.cs
- OleDbEnumerator.cs
- AuthenticationServiceManager.cs
- NullableDoubleMinMaxAggregationOperator.cs
- EnumerableRowCollectionExtensions.cs
- Int32AnimationUsingKeyFrames.cs
- unsafeIndexingFilterStream.cs
- _ListenerAsyncResult.cs
- FormsIdentity.cs
- AccessDataSourceView.cs
- StackOverflowException.cs
- WorkflowOwnershipException.cs
- DesignerCategoryAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- Matrix.cs
- ImageFormatConverter.cs
- DrawingContextWalker.cs
- JsonReaderDelegator.cs
- CryptoApi.cs
- CharAnimationUsingKeyFrames.cs
- CompositeActivityTypeDescriptorProvider.cs
- FileSystemInfo.cs
- CryptoKeySecurity.cs
- TabControl.cs
- Property.cs
- ObjectDataSourceView.cs