mscorlib 4.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)

When you develop wrt Components, use this attribute when you want to specify the default interface that is used to marshal the class the attribute is applied to. This is not necessary if you allow the class interfaces to be generated automatically.

A wrt class must have a default interface. If the WinMdExp.exe utility does not detect a default interface for a class when it builds your wrt component, it chooses an interface as follows:

If the class has automatically generated interfaces, it uses the first one as the default.

If the class doesn't have any automatically generated interfaces, it uses the first interface in the class's interface implementation list.

You can apply the attribute to the class, or apply the Windows.Foundations.Metadata.DefaultAttribute attribute to an interface. The latter takes precedence if both attributes are supplied.

Specifies the default interface of a managed wrt class.

- Constructor
  4.0.0.0
  To be added.

  Initializes a new instance of the class.

  The interface type that is specified as the default interface for the class the attribute is applied to.
- Property
  4.0.0.0
  System.Type To be added. To be added.

  Gets the type of the default interface.