-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathDefaultInterfaceAttribute.xml
More file actions
109 lines (103 loc) · 6.62 KB
/
DefaultInterfaceAttribute.xml
File metadata and controls
109 lines (103 loc) · 6.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<Type Name="DefaultInterfaceAttribute" FullName="System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute">
<TypeSignature Language="C#" Value="public sealed class DefaultInterfaceAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit DefaultInterfaceAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class DefaultInterfaceAttribute
Inherits Attribute" />
<TypeSignature Language="F#" Value="type DefaultInterfaceAttribute = class
 inherit Attribute" />
<TypeSignature Language="C++ CLI" Value="public ref class DefaultInterfaceAttribute sealed : Attribute" />
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="mscorlib" FromVersion="4.0.0.0" To="System.Runtime.InteropServices.WindowsRuntime" ToVersion="0.0.0.0" FrameworkAlternate="dotnet-uwp-10.0" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)]</AttributeName>
<AttributeName Language="F#">[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Specifies the default interface of a managed Windows Runtime class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When you develop Windows Runtime 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 Windows Runtime class must have a default interface. If the WinMdExp.exe utility does not detect a default interface for a class when it builds your Windows Runtimecomponent, 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 <xref:System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute> attribute to the class, or apply the `Windows.Foundations.Metadata.DefaultAttribute` attribute to an interface. The latter takes precedence if both attributes are supplied.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DefaultInterfaceAttribute (Type defaultInterface);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Type defaultInterface) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute.#ctor(System.Type)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (defaultInterface As Type)" />
<MemberSignature Language="F#" Value="new System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute : Type -> System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute" Usage="new System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute defaultInterface" />
<MemberSignature Language="C++ CLI" Value="public:
 DefaultInterfaceAttribute(Type ^ defaultInterface);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="defaultInterface" Type="System.Type" />
</Parameters>
<Docs>
<param name="defaultInterface">The interface type that is specified as the default interface for the class the attribute is applied to.</param>
<summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultInterface">
<MemberSignature Language="C#" Value="public Type DefaultInterface { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Type DefaultInterface" />
<MemberSignature Language="DocId" Value="P:System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute.DefaultInterface" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property DefaultInterface As Type" />
<MemberSignature Language="F#" Value="member this.DefaultInterface : Type" Usage="System.Runtime.InteropServices.WindowsRuntime.DefaultInterfaceAttribute.DefaultInterface" />
<MemberSignature Language="C++ CLI" Value="public:
 property Type ^ DefaultInterface { Type ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the type of the default interface.</summary>
<value>The type of the default interface.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>