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
- DATA_BLOB.cs
- Panel.cs
- AppSettingsExpressionEditor.cs
- XPathMessageFilterElementCollection.cs
- CustomTypeDescriptor.cs
- SemaphoreSecurity.cs
- HttpRequestCacheValidator.cs
- Crc32.cs
- RtfControlWordInfo.cs
- _IPv6Address.cs
- AnimationException.cs
- RuntimeEnvironment.cs
- GridViewRowPresenter.cs
- Command.cs
- TypeResolver.cs
- DockPattern.cs
- CommonProperties.cs
- LineMetrics.cs
- PageHandlerFactory.cs
- TextPointer.cs
- Executor.cs
- RuntimeCompatibilityAttribute.cs
- ProgressBarBrushConverter.cs
- SiteMapDataSourceView.cs
- ToolStripItemCollection.cs
- EnumMemberAttribute.cs
- StartUpEventArgs.cs
- CodeRemoveEventStatement.cs
- RuntimeCompatibilityAttribute.cs
- precedingquery.cs
- ToolboxItemWrapper.cs
- MetadataSource.cs
- ConfigurationException.cs
- NameService.cs
- ButtonFieldBase.cs
- TargetParameterCountException.cs
- MarkedHighlightComponent.cs
- MailMessageEventArgs.cs
- TextPointerBase.cs
- clipboard.cs
- DES.cs
- PictureBox.cs
- NameValuePermission.cs
- IndicCharClassifier.cs
- OleDbCommandBuilder.cs
- SchemaElementDecl.cs
- WeakReferenceList.cs
- WorkItem.cs
- TypographyProperties.cs
- ModuleBuilder.cs
- ScriptingJsonSerializationSection.cs
- Monitor.cs
- MailHeaderInfo.cs
- Formatter.cs
- StructuredTypeEmitter.cs
- Crc32.cs
- DataSourceCollectionBase.cs
- TreeViewBindingsEditorForm.cs
- pingexception.cs
- FamilyMap.cs
- WebPartZoneDesigner.cs
- StringPropertyBuilder.cs
- DataViewSetting.cs
- StatusBar.cs
- CompensationToken.cs
- Helpers.cs
- HtmlWindowCollection.cs
- OleDbDataReader.cs
- DeflateStreamAsyncResult.cs
- FileIOPermission.cs
- ipaddressinformationcollection.cs
- TrimSurroundingWhitespaceAttribute.cs
- DebuggerAttributes.cs
- NetStream.cs
- Win32Exception.cs
- SynchronizedDispatch.cs
- ToolStripMenuItem.cs
- ColorTransform.cs
- DataSourceNameHandler.cs
- PrintDialog.cs
- _ScatterGatherBuffers.cs
- StyleXamlParser.cs
- SerializationTrace.cs
- CreateRefExpr.cs
- DbTypeMap.cs
- CellLabel.cs
- CompatibleIComparer.cs
- ListViewItemSelectionChangedEvent.cs
- OdbcCommand.cs
- __Error.cs
- TablePattern.cs
- MetadataArtifactLoaderCompositeFile.cs
- XmlFormatReaderGenerator.cs
- LinqToSqlWrapper.cs
- AppearanceEditorPart.cs
- SystemIPAddressInformation.cs
- HwndPanningFeedback.cs
- FileFormatException.cs
- NeutralResourcesLanguageAttribute.cs
- Bits.cs