/
DynamicallyAccessedMembersAttribute.xml
99 lines (96 loc) · 8.06 KB
/
DynamicallyAccessedMembersAttribute.xml
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
<Type Name="DynamicallyAccessedMembersAttribute" FullName="System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute">
<TypeSignature Language="C#" Value="public sealed class DynamicallyAccessedMembersAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit DynamicallyAccessedMembersAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class DynamicallyAccessedMembersAttribute
Inherits Attribute" />
<TypeSignature Language="F#" Value="type DynamicallyAccessedMembersAttribute = class
 inherit Attribute" />
<TypeSignature Language="C++ CLI" Value="public ref class DynamicallyAccessedMembersAttribute sealed : Attribute" />
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="net-5.0">
<AttributeName Language="C#">[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)]</AttributeName>
<AttributeName Language="F#">[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0">
<AttributeName Language="C#">[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | System.AttributeTargets.Struct, Inherited=false)]</AttributeName>
<AttributeName Language="F#">[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | System.AttributeTargets.Struct, Inherited=false)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Indicates that certain members on a specified <see cref="T:System.Type" /> are accessed dynamically, for example, through <see cref="N:System.Reflection" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This attribute allows tools to understand which members are being accessed during the execution of a program.
This attribute is valid on members whose type is <xref:System.Type> or <xref:System.String>.
When this attribute is applied to a location of type <xref:System.String>, the assumption is that the string represents a fully qualified type name.
If the attribute is applied to a method, it's treated as a special case and it implies that the attribute should be applied to the "this" parameter of the method. The attribute should only be used on instance methods of types that are assignable to <xref:System.Type> (or `string`, but no methods will use it there).
For more information, see [Introduction to trim warnings](/dotnet/core/deploying/trimming/fixing-warnings#dynamicallyaccessedmembers).
]]></format>
</remarks>
<related type="Article" href="/dotnet/core/deploying/trimming/fixing-warnings">Introduction to trim warnings</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DynamicallyAccessedMembersAttribute (System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes memberTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes memberTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute.#ctor(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (memberTypes As DynamicallyAccessedMemberTypes)" />
<MemberSignature Language="F#" Value="new System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute : System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes -> System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute" Usage="new System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute memberTypes" />
<MemberSignature Language="C++ CLI" Value="public:
 DynamicallyAccessedMembersAttribute(System::Diagnostics::CodeAnalysis::DynamicallyAccessedMemberTypes memberTypes);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="memberTypes" Type="System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes" />
</Parameters>
<Docs>
<param name="memberTypes">The types of the dynamically accessed members.</param>
<summary>Initializes a new instance of the <see cref="T:System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute" /> class with the specified member types.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MemberTypes">
<MemberSignature Language="C#" Value="public System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes MemberTypes { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes MemberTypes" />
<MemberSignature Language="DocId" Value="P:System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute.MemberTypes" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property MemberTypes As DynamicallyAccessedMemberTypes" />
<MemberSignature Language="F#" Value="member this.MemberTypes : System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes" Usage="System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute.MemberTypes" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Diagnostics::CodeAnalysis::DynamicallyAccessedMemberTypes MemberTypes { System::Diagnostics::CodeAnalysis::DynamicallyAccessedMemberTypes get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes" /> that specifies the type of dynamically accessed members.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>