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
- IISMapPath.cs
- smtpconnection.cs
- SiteMapPath.cs
- FontFamilyIdentifier.cs
- BitmapEffectInputConnector.cs
- DataGridViewCellLinkedList.cs
- SelectManyQueryOperator.cs
- KerberosTicketHashIdentifierClause.cs
- SevenBitStream.cs
- CorrelationManager.cs
- CommandID.cs
- GridView.cs
- WindowsButton.cs
- ParameterToken.cs
- DataGridAutomationPeer.cs
- FileFormatException.cs
- AspNetPartialTrustHelpers.cs
- ThousandthOfEmRealDoubles.cs
- HwndSourceParameters.cs
- XmlSchemaSequence.cs
- LineVisual.cs
- XmlCharType.cs
- AttachmentCollection.cs
- BrushMappingModeValidation.cs
- PkcsMisc.cs
- ADMembershipUser.cs
- DataSourceCache.cs
- PrefixHandle.cs
- WindowsScrollBar.cs
- TextTreeRootNode.cs
- Connection.cs
- WorkflowApplicationIdleEventArgs.cs
- XPathNodeInfoAtom.cs
- Rect.cs
- GZipObjectSerializer.cs
- Variant.cs
- SettingsBindableAttribute.cs
- TransformGroup.cs
- DoubleConverter.cs
- SplashScreenNativeMethods.cs
- ColumnMapTranslator.cs
- Authorization.cs
- GeneralTransformCollection.cs
- EpmHelper.cs
- Message.cs
- ProjectionRewriter.cs
- TextStore.cs
- DocumentScope.cs
- SqlStatistics.cs
- ResolveInfo.cs
- TdsParserSafeHandles.cs
- Accessible.cs
- TreeView.cs
- RectKeyFrameCollection.cs
- UnsafeNativeMethods.cs
- PagedDataSource.cs
- AccessText.cs
- SqlCachedBuffer.cs
- EventProperty.cs
- AsymmetricSecurityProtocolFactory.cs
- JoinGraph.cs
- PartialClassGenerationTask.cs
- RenderCapability.cs
- ConditionCollection.cs
- EnvironmentPermission.cs
- PtsHelper.cs
- Activator.cs
- TypeContext.cs
- Point3DIndependentAnimationStorage.cs
- PipelineModuleStepContainer.cs
- ProfileModule.cs
- MenuCommands.cs
- FileClassifier.cs
- ConfigurationValue.cs
- SafeProcessHandle.cs
- ConfigurationStrings.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- SqlHelper.cs
- OleDbException.cs
- ValidationSummaryDesigner.cs
- ToolBar.cs
- GetPageNumberCompletedEventArgs.cs
- DataViewSettingCollection.cs
- BitmapEffectState.cs
- FormsAuthenticationConfiguration.cs
- SHA384CryptoServiceProvider.cs
- DateTimeStorage.cs
- Metafile.cs
- WindowsListView.cs
- WebPartDescriptionCollection.cs
- WindowsTitleBar.cs
- DataReceivedEventArgs.cs
- CompiledELinqQueryState.cs
- SerializerDescriptor.cs
- ItemsControlAutomationPeer.cs
- ProxyAttribute.cs
- SystemTcpStatistics.cs
- ConstrainedDataObject.cs
- CryptoApi.cs
- CqlParserHelpers.cs