Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- WebPartHeaderCloseVerb.cs
- WsatConfiguration.cs
- ForeignKeyConstraint.cs
- DataGridViewCellStyleConverter.cs
- CookielessData.cs
- RuntimeResourceSet.cs
- StateDesignerConnector.cs
- WebPartCatalogCloseVerb.cs
- HttpListenerRequest.cs
- CryptographicAttribute.cs
- DataGridViewComboBoxColumn.cs
- ResourceReferenceExpressionConverter.cs
- ListViewPagedDataSource.cs
- DocComment.cs
- SimpleTableProvider.cs
- SettingsPropertyNotFoundException.cs
- X509Certificate.cs
- PropertyGridEditorPart.cs
- Activity.cs
- Blend.cs
- AttributeCollection.cs
- ThreadPool.cs
- ExtensionFile.cs
- GraphicsContext.cs
- MutexSecurity.cs
- CollectionEditor.cs
- InterleavedZipPartStream.cs
- Pkcs7Signer.cs
- Size.cs
- ConfigurationValue.cs
- CounterSetInstanceCounterDataSet.cs
- SelectionPatternIdentifiers.cs
- ComboBox.cs
- SchemaAttDef.cs
- RowToParametersTransformer.cs
- CodeArrayCreateExpression.cs
- RowBinding.cs
- QilXmlWriter.cs
- LoginView.cs
- FileVersion.cs
- XsltConvert.cs
- ScriptingScriptResourceHandlerSection.cs
- ContentHostHelper.cs
- HelpKeywordAttribute.cs
- DataGridTextColumn.cs
- CrossContextChannel.cs
- ScrollViewer.cs
- InputQueue.cs
- OleDbCommand.cs
- Int32AnimationUsingKeyFrames.cs
- MaterialCollection.cs
- BlurEffect.cs
- ActivitiesCollection.cs
- GeometryModel3D.cs
- OutOfMemoryException.cs
- CommandDesigner.cs
- ScriptingAuthenticationServiceSection.cs
- SubclassTypeValidatorAttribute.cs
- DataGridClipboardCellContent.cs
- AssociationSet.cs
- _ConnectionGroup.cs
- CompressEmulationStream.cs
- TreeViewCancelEvent.cs
- DictionaryItemsCollection.cs
- XmlRawWriter.cs
- SqlIdentifier.cs
- LocalsItemDescription.cs
- AccessibleObject.cs
- documentation.cs
- PointConverter.cs
- CustomAssemblyResolver.cs
- DataSourceHelper.cs
- BidOverLoads.cs
- TreeNode.cs
- IPAddressCollection.cs
- BufferedStream2.cs
- SiteMembershipCondition.cs
- DES.cs
- ObjectViewFactory.cs
- IndexingContentUnit.cs
- CookielessData.cs
- RegexGroupCollection.cs
- DataGridViewSelectedRowCollection.cs
- InvalidDataContractException.cs
- TextSpan.cs
- invalidudtexception.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- IOException.cs
- MediaEntryAttribute.cs
- ActivitySurrogate.cs
- CalloutQueueItem.cs
- NetDataContractSerializer.cs
- Image.cs
- ItemsControl.cs
- SmtpReplyReaderFactory.cs
- ProfileManager.cs
- ScriptModule.cs
- StorageAssociationSetMapping.cs
- HeaderElement.cs
- Imaging.cs