EventDataAttribute::Name Property

.NET Framework (current version)
 

Gets or set the name to apply to an event if the event type or property is not explicitly named.

Namespace:   System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)

public:
property String^ Name {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The name to apply to the event or property.

If you call Write<T>, passing null for eventName, the event name is automatically derived from Name or determined based on the name of type T.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show: