Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / corlib / Documentation / en / System.Reflection / DefaultMemberAttribute.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="DefaultMemberAttribute" FullName="System.Reflection.DefaultMemberAttribute" FullNameSP="System_Reflection_DefaultMemberAttribute" Maintainer="ecma">
3   <TypeSignature Language="ILASM" Value=".class public sealed serializable DefaultMemberAttribute extends System.Attribute" />
4   <TypeSignature Language="C#" Value="public sealed class DefaultMemberAttribute : Attribute" />
5   <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit DefaultMemberAttribute extends System.Attribute" />
6   <MemberOfLibrary>RuntimeInfrastructure</MemberOfLibrary>
7   <AssemblyInfo>
8     <AssemblyName>mscorlib</AssemblyName>
9     <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
10     <AssemblyVersion>1.0.5000.0</AssemblyVersion>
11     <AssemblyVersion>2.0.0.0</AssemblyVersion>
12     <AssemblyVersion>4.0.0.0</AssemblyVersion>
13   </AssemblyInfo>
14   <ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
15   <Base>
16     <BaseTypeName>System.Attribute</BaseTypeName>
17   </Base>
18   <Interfaces />
19   <Attributes>
20     <Attribute>
21       <AttributeName>System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Interface | System.AttributeTargets.All)</AttributeName>
22     </Attribute>
23     <Attribute>
24       <AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
25     </Attribute>
26   </Attributes>
27   <Docs>
28     <remarks>
29       <attribution license="cc4" from="Microsoft" modified="false" />
30       <para>A property is imported as an indexer (default indexed property in Visual Basic) if the property has arguments and if the name of the property or one of its accessors matches the name specified by the <see cref="T:System.Reflection.DefaultMemberAttribute" />. If the <see cref="T:System.Reflection.DefaultMemberAttribute" /> is not present on the containing type, then the type does not have an indexer. The C# compiler emits the <see cref="T:System.Reflection.DefaultMemberAttribute" /> on any type containing an indexer. In C# it is an error to manually attribute a type with the <see cref="T:System.Reflection.DefaultMemberAttribute" /> if the type also declares an indexer.  </para>
31     </remarks>
32     <summary>
33       <attribution license="cc4" from="Microsoft" modified="false" />
34       <para>Defines the member of a type that is the default member used by <see cref="M:System.Type.InvokeMember(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object,System.Object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,System.String[])" />. </para>
35     </summary>
36   </Docs>
37   <Members>
38     <Member MemberName=".ctor">
39       <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string memberName)" />
40       <MemberSignature Language="C#" Value="public DefaultMemberAttribute (string memberName);" />
41       <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string memberName) cil managed" />
42       <MemberType>Constructor</MemberType>
43       <AssemblyInfo>
44         <AssemblyVersion>1.0.5000.0</AssemblyVersion>
45         <AssemblyVersion>2.0.0.0</AssemblyVersion>
46         <AssemblyVersion>4.0.0.0</AssemblyVersion>
47       </AssemblyInfo>
48       <ReturnValue />
49       <Parameters>
50         <Parameter Name="memberName" Type="System.String" />
51       </Parameters>
52       <Docs>
53         <remarks>
54           <para>This constructor initializes the <see cref="P:System.Reflection.DefaultMemberAttribute.MemberName" /> property using <paramref name="memberName" />
55 .</para>
56         </remarks>
57         <summary>
58           <attribution license="cc4" from="Microsoft" modified="false" />
59           <para>Initializes a new instance of the <see cref="T:System.Reflection.DefaultMemberAttribute" /> class.</para>
60         </summary>
61         <param name="memberName">
62           <attribution license="cc4" from="Microsoft" modified="false" />A String containing the name of the member to invoke. This may be a constructor, method, property, or field. A suitable invocation attribute must be specified when the member is invoked. The default member of a class can be specified by passing an empty String as the name of the member.</param>
63       </Docs>
64       <Excluded>0</Excluded>
65     </Member>
66     <Member MemberName="MemberName">
67       <MemberSignature Language="ILASM" Value=".property string MemberName { public hidebysig specialname instance string get_MemberName() }" />
68       <MemberSignature Language="C#" Value="public string MemberName { get; }" />
69       <MemberSignature Language="ILAsm" Value=".property instance string MemberName" />
70       <MemberType>Property</MemberType>
71       <AssemblyInfo>
72         <AssemblyVersion>1.0.5000.0</AssemblyVersion>
73         <AssemblyVersion>2.0.0.0</AssemblyVersion>
74         <AssemblyVersion>4.0.0.0</AssemblyVersion>
75       </AssemblyInfo>
76       <ReturnValue>
77         <ReturnType>System.String</ReturnType>
78       </ReturnValue>
79       <Parameters />
80       <Docs>
81         <value>
82           <para> A <see cref="T:System.String" /> representing the member name contained by the current instance.
83    </para>
84         </value>
85         <remarks>
86           <attribution license="cc4" from="Microsoft" modified="false" />
87           <para>There is no set accessor because the name must be provided to the constructor. The name is not optional.</para>
88         </remarks>
89         <summary>
90           <attribution license="cc4" from="Microsoft" modified="false" />
91           <para>Gets the name from the attribute.</para>
92         </summary>
93       </Docs>
94       <Excluded>0</Excluded>
95     </Member>
96   </Members>
97   <TypeExcluded>0</TypeExcluded>
98 </Type>