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
- CompilationUtil.cs
- CompletionBookmark.cs
- Constraint.cs
- ContainerParagraph.cs
- StronglyTypedResourceBuilder.cs
- SchemaTableColumn.cs
- XmlWellformedWriterHelpers.cs
- DataGridViewColumn.cs
- FakeModelPropertyImpl.cs
- HeaderedItemsControl.cs
- DataContractSerializerServiceBehavior.cs
- DragDropHelper.cs
- TemplateColumn.cs
- Context.cs
- ClientConfigurationSystem.cs
- MetadataItemCollectionFactory.cs
- FrameworkPropertyMetadata.cs
- LocalTransaction.cs
- Matrix3DValueSerializer.cs
- Attributes.cs
- SynchronizedInputProviderWrapper.cs
- ErrorTableItemStyle.cs
- Screen.cs
- BulletedListEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- CompositeTypefaceMetrics.cs
- ProcessHostServerConfig.cs
- XmlCDATASection.cs
- ConditionalAttribute.cs
- AuthenticationSection.cs
- GridViewCommandEventArgs.cs
- XmlElementAttribute.cs
- SchemaImporterExtension.cs
- PrtTicket_Editor.cs
- SmtpLoginAuthenticationModule.cs
- VisualStates.cs
- RenameRuleObjectDialog.cs
- KnowledgeBase.cs
- KnownTypeAttribute.cs
- HelpEvent.cs
- querybuilder.cs
- ExpandCollapseProviderWrapper.cs
- TextBoxRenderer.cs
- AvTraceFormat.cs
- TimelineClockCollection.cs
- Composition.cs
- ProxyGenerationError.cs
- FontStyleConverter.cs
- RegexReplacement.cs
- CompilerErrorCollection.cs
- CellParagraph.cs
- ResourceDisplayNameAttribute.cs
- StylusEditingBehavior.cs
- RegexCaptureCollection.cs
- PointLight.cs
- securestring.cs
- sqlcontext.cs
- ColorPalette.cs
- ItemsPanelTemplate.cs
- UnhandledExceptionEventArgs.cs
- MaskedTextProvider.cs
- WorkItem.cs
- StreamWriter.cs
- RadialGradientBrush.cs
- EmptyStringExpandableObjectConverter.cs
- ConstraintCollection.cs
- DbReferenceCollection.cs
- ObjectSet.cs
- DataSetUtil.cs
- DataServiceQuery.cs
- MenuItemBinding.cs
- HttpApplication.cs
- SmuggledIUnknown.cs
- TaiwanCalendar.cs
- ServiceOperationDetailViewControl.cs
- HTMLTextWriter.cs
- PrintControllerWithStatusDialog.cs
- Certificate.cs
- RoutedEventArgs.cs
- X509CertificateStore.cs
- ProtocolException.cs
- AffineTransform3D.cs
- BindingManagerDataErrorEventArgs.cs
- PrintPreviewControl.cs
- FixedSOMSemanticBox.cs
- FilterElement.cs
- HuffCodec.cs
- ContextItemManager.cs
- QilChoice.cs
- PenContext.cs
- SettingsPropertyWrongTypeException.cs
- XmlAttributeAttribute.cs
- XmlAttributes.cs
- dtdvalidator.cs
- SystemMulticastIPAddressInformation.cs
- XPathAxisIterator.cs
- BitmapEffectInputConnector.cs
- ListInitExpression.cs
- DisplayInformation.cs
- ReflectEventDescriptor.cs