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
- IdleTimeoutMonitor.cs
- PageEventArgs.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BaseCollection.cs
- CopyAttributesAction.cs
- ThreadExceptionEvent.cs
- HttpDigestClientCredential.cs
- OleAutBinder.cs
- BaseComponentEditor.cs
- XmlConvert.cs
- DefaultTextStoreTextComposition.cs
- MenuItemStyleCollectionEditor.cs
- ClickablePoint.cs
- CustomPopupPlacement.cs
- DbConnectionPoolCounters.cs
- CombinedGeometry.cs
- XsltInput.cs
- WebPartsPersonalizationAuthorization.cs
- EdmFunction.cs
- WSFederationHttpBindingElement.cs
- XNodeValidator.cs
- DataGridPagerStyle.cs
- CompiledIdentityConstraint.cs
- DataColumnMapping.cs
- SoapSchemaMember.cs
- TypeDependencyAttribute.cs
- HtmlEncodedRawTextWriter.cs
- CompositeScriptReferenceEventArgs.cs
- QilLiteral.cs
- DateTimeOffset.cs
- UserControl.cs
- precedingsibling.cs
- SelectedDatesCollection.cs
- ContentElementAutomationPeer.cs
- DrawingCollection.cs
- StatusCommandUI.cs
- ObjectItemNoOpAssemblyLoader.cs
- ParameterElement.cs
- TextLine.cs
- SystemIPInterfaceStatistics.cs
- NumberFormatInfo.cs
- TailCallAnalyzer.cs
- SystemSounds.cs
- ViewKeyConstraint.cs
- BitmapEffectGroup.cs
- CommandLibraryHelper.cs
- MobileListItem.cs
- ViewGenerator.cs
- ObjectDesignerDataSourceView.cs
- ToolStripTextBox.cs
- ReadOnlyNameValueCollection.cs
- ColorConvertedBitmapExtension.cs
- TableRowGroup.cs
- glyphs.cs
- ResXResourceWriter.cs
- GridViewUpdateEventArgs.cs
- GenerateScriptTypeAttribute.cs
- ActivityDesignerHighlighter.cs
- DummyDataSource.cs
- QilPatternFactory.cs
- ButtonField.cs
- TypeReference.cs
- DataTableMapping.cs
- XPathDescendantIterator.cs
- formatter.cs
- DbConnectionClosed.cs
- DelegateHelpers.Generated.cs
- HostingEnvironmentWrapper.cs
- xmlsaver.cs
- DataControlField.cs
- ClassicBorderDecorator.cs
- StrongNameKeyPair.cs
- DbParameterCollectionHelper.cs
- LocalValueEnumerator.cs
- _NetRes.cs
- ImageMetadata.cs
- TimerElapsedEvenArgs.cs
- Drawing.cs
- MSAANativeProvider.cs
- NameObjectCollectionBase.cs
- BufferModeSettings.cs
- SafeHandles.cs
- MatrixTransform.cs
- DesigntimeLicenseContextSerializer.cs
- EntityConnection.cs
- CanonicalizationDriver.cs
- BinaryCommonClasses.cs
- GcSettings.cs
- WindowProviderWrapper.cs
- listitem.cs
- CqlLexerHelpers.cs
- OrderedDictionary.cs
- ContentValidator.cs
- LogReserveAndAppendState.cs
- AutomationPropertyInfo.cs
- TouchFrameEventArgs.cs
- CodeComment.cs
- AttributeAction.cs
- MultipleViewPattern.cs
- ScriptingSectionGroup.cs