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
- SafeHandles.cs
- DbParameterCollection.cs
- TextProperties.cs
- XPathAncestorQuery.cs
- FreeIndexList.cs
- BindingCompleteEventArgs.cs
- InfiniteIntConverter.cs
- StringValidator.cs
- MimePart.cs
- CategoryNameCollection.cs
- ChtmlPhoneCallAdapter.cs
- DataGridToolTip.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DES.cs
- InternalCache.cs
- SortQuery.cs
- BookmarkScopeManager.cs
- XmlNodeReader.cs
- MatchAllMessageFilter.cs
- Regex.cs
- StylusButtonCollection.cs
- TextWriterTraceListener.cs
- FastEncoder.cs
- PropertyPath.cs
- CustomGrammar.cs
- cookieexception.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlCharCheckingWriter.cs
- MarshalByValueComponent.cs
- ContextQuery.cs
- PropertyInformationCollection.cs
- NativeRecognizer.cs
- FixUp.cs
- DatatypeImplementation.cs
- SubtreeProcessor.cs
- WmlPageAdapter.cs
- TextDecorations.cs
- InputMethodStateTypeInfo.cs
- basenumberconverter.cs
- UnionCodeGroup.cs
- RawContentTypeMapper.cs
- WebConfigurationManager.cs
- BitmapFrameEncode.cs
- ImageListStreamer.cs
- TypedElement.cs
- AttributeSetAction.cs
- CryptographicAttribute.cs
- TimerElapsedEvenArgs.cs
- ParallelRangeManager.cs
- ClientConvert.cs
- ConfigurationValue.cs
- hwndwrapper.cs
- InfiniteIntConverter.cs
- DateTime.cs
- ProgramPublisher.cs
- FileSystemEventArgs.cs
- DefaultHttpHandler.cs
- CommonXSendMessage.cs
- UIElement3D.cs
- DataTablePropertyDescriptor.cs
- ListViewGroupItemCollection.cs
- DelegateBodyWriter.cs
- BufferedGraphicsManager.cs
- ValidatorUtils.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlHierarchicalDataSourceView.cs
- UnmanagedMemoryStream.cs
- DeferredElementTreeState.cs
- SafeRightsManagementHandle.cs
- CompilerError.cs
- DocobjHost.cs
- XamlTreeBuilder.cs
- SEHException.cs
- System.Data.OracleClient_BID.cs
- QualifiedCellIdBoolean.cs
- ArglessEventHandlerProxy.cs
- TraceLog.cs
- ParserStreamGeometryContext.cs
- UnsignedPublishLicense.cs
- UIElement3D.cs
- GeneralTransform.cs
- FragmentQueryKB.cs
- ViewPort3D.cs
- FormViewPageEventArgs.cs
- ComEventsInfo.cs
- DbConnectionHelper.cs
- CodeTypeReferenceCollection.cs
- ToolStripStatusLabel.cs
- EnumerableWrapperWeakToStrong.cs
- LoginUtil.cs
- Selector.cs
- unitconverter.cs
- CombinedGeometry.cs
- PriorityBinding.cs
- EntityCommandCompilationException.cs
- CustomAttributeFormatException.cs
- MessagingDescriptionAttribute.cs
- HostingEnvironmentSection.cs
- ListComponentEditorPage.cs
- ToolboxItemAttribute.cs