| File: System\Composition\ImportingConstructorAttribute.cs | Web Access |
| Project: src\runtime\src\libraries\System.Composition.AttributedModel\src\System.Composition.AttributedModel.csproj (System.Composition.AttributedModel) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Composition { /// <summary> /// Specifies that a constructor should be used when constructing an attributed part. /// </summary> /// <remarks> /// By default, only a default parameter-less constructor, if available, is used to /// construct an attributed part. Use this attribute to indicate that a specific constructor /// should be used. /// </remarks> [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)] public sealed class ImportingConstructorAttribute : Attribute { /// <summary> /// Initializes a new instance of the <see cref="ImportingConstructorAttribute"/> class. /// </summary> public ImportingConstructorAttribute() { } } }