TelemetryAttribute(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructs TelemetryAttribute
public TelemetryAttribute (string? name = default, string? displayName = default);
new System.Device.Model.TelemetryAttribute : string * string -> System.Device.Model.TelemetryAttribute
Public Sub New (Optional name As String = Nothing, Optional displayName As String = Nothing)
Parameters
- name
- String
Name of the telemetry. If not provided property name will be used.
- displayName
- String
Optional display name of the telemetry. If not provided it may be infered from the type.
Remarks
When put on methods name should always be provided.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for