update MEF to preview 9
[mcs.git] / class / System.ComponentModel.Composition / src / ComponentModel / System / ComponentModel / Composition / ImportingConstructorAttribute.cs
blob2263316d43caec8952cb753757fae1e924b028fd
1 // -----------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 // -----------------------------------------------------------------------
4 using System;
5 using System.Diagnostics.CodeAnalysis;
7 namespace System.ComponentModel.Composition
9 /// <summary>
10 /// Specifies that a constructor should be used when constructing an attributed part.
11 /// </summary>
12 /// <remarks>
13 /// By default, only a default parameter-less constructor, if available, is used to
14 /// construct an attributed part. Use this attribute to indicate that a specific constructor
15 /// should be used.
16 /// </remarks>
17 [SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
18 [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
19 public class ImportingConstructorAttribute : Attribute
21 /// <summary>
22 /// Initializes a new instance of the <see cref="ImportingConstructorAttribute"/> class.
23 /// </summary>
24 public ImportingConstructorAttribute()