Share via


CollectionBuilderAttribute.MethodName 属性

定义

获取生成器上用于构造集合的方法的名称。

public:
 property System::String ^ MethodName { System::String ^ get(); };
public string MethodName { get; }
member this.MethodName : string
Public ReadOnly Property MethodName As String

属性值

注解

这应与目标方法的元数据名称匹配。 例如,如果面向类型的构造函数,则可能是“.ctor”。

适用于