Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- UIInitializationException.cs
- ViewPort3D.cs
- RSAProtectedConfigurationProvider.cs
- ObjectDataSourceStatusEventArgs.cs
- XmlIlTypeHelper.cs
- JournalEntryStack.cs
- ClientSettingsProvider.cs
- DropSource.cs
- TypedReference.cs
- AuthenticationService.cs
- DataGridItem.cs
- PointCollectionConverter.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlObjectSerializerContext.cs
- MtomMessageEncodingBindingElement.cs
- ExpandSegmentCollection.cs
- SafeNativeMethods.cs
- DispatcherExceptionEventArgs.cs
- CatalogPartCollection.cs
- ImageConverter.cs
- CollectionViewGroupInternal.cs
- SelectionChangedEventArgs.cs
- DocumentEventArgs.cs
- CommonGetThemePartSize.cs
- _CommandStream.cs
- TextRangeBase.cs
- Psha1DerivedKeyGenerator.cs
- ActiveDocumentEvent.cs
- PipelineModuleStepContainer.cs
- TypeBuilderInstantiation.cs
- HttpRequestWrapper.cs
- IApplicationTrustManager.cs
- InstancePersistenceException.cs
- XmlSchemaRedefine.cs
- DataServiceRequestOfT.cs
- BaseParaClient.cs
- XMLSchema.cs
- LineServicesRun.cs
- Repeater.cs
- DesignOnlyAttribute.cs
- PageRequestManager.cs
- JpegBitmapEncoder.cs
- RuleSettings.cs
- sitestring.cs
- PolicyException.cs
- XmlBoundElement.cs
- JapaneseCalendar.cs
- JournalNavigationScope.cs
- mansign.cs
- WindowProviderWrapper.cs
- ConsumerConnectionPoint.cs
- ToolStripItemImageRenderEventArgs.cs
- StringAnimationUsingKeyFrames.cs
- GiveFeedbackEvent.cs
- HttpCapabilitiesBase.cs
- FixedHighlight.cs
- DataGridGeneralPage.cs
- Pkcs7Recipient.cs
- ErrorStyle.cs
- FileSystemEnumerable.cs
- QueryTaskGroupState.cs
- RSAOAEPKeyExchangeDeformatter.cs
- precedingsibling.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- AmbiguousMatchException.cs
- VisualStyleTypesAndProperties.cs
- DataRowCollection.cs
- PersistenceMetadataNamespace.cs
- DataColumnMapping.cs
- Win32KeyboardDevice.cs
- RepeatBehaviorConverter.cs
- InkCollectionBehavior.cs
- DragDrop.cs
- HighlightVisual.cs
- _ConnectStream.cs
- CustomError.cs
- remotingproxy.cs
- XmlnsCache.cs
- BuilderInfo.cs
- MarshalDirectiveException.cs
- ColumnTypeConverter.cs
- ProfileGroupSettings.cs
- ScriptReference.cs
- TransformerConfigurationWizardBase.cs
- BulletDecorator.cs
- TimelineGroup.cs
- CodeNamespaceCollection.cs
- DesignerActionUI.cs
- ExpressionBindingCollection.cs
- DbExpressionVisitor.cs
- GridEntryCollection.cs
- ClientScriptManagerWrapper.cs
- TrustManagerPromptUI.cs
- PrivilegeNotHeldException.cs
- XPathException.cs
- ReadOnlyAttribute.cs
- CodeMemberField.cs
- ListViewPagedDataSource.cs
- SignatureHelper.cs
- NameTable.cs