EventDataAttribute.Name 属性

定义

如果未显式命名事件类型或属性,则获取或设置要应用于事件的名称。Gets or sets the name to apply to an event if the event type or property is not explicitly named.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
public string? Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

属性值

String

要应用于事件或属性的名称。The name to apply to the event or property.

注解

如果调用 Write ,则传递 null eventName ,事件名称自动派生自 Name 或根据类型的名称确定 TIf you call Write, passing null for eventName, the event name is automatically derived from Name or determined based on the name of type T.

适用于