Compartilhar via


TelemetryEventDetails.SetProperty Method

Definition

Overloads

SetProperty(String, Boolean)

Sets a property on the event details.

SetProperty(String, DateTime)

Sets a property on the event details.

SetProperty(String, Double)

Sets a property on the event details.

SetProperty(String, Guid)

Sets a property on the event details.

SetProperty(String, Int64)

Sets a property on the event details.

SetProperty(String, String)

Sets a property on the event details.

SetProperty(String, Boolean)

Sets a property on the event details.

public virtual void SetProperty (string key, bool value);
abstract member SetProperty : string * bool -> unit
override this.SetProperty : string * bool -> unit
Public Overridable Sub SetProperty (key As String, value As Boolean)

Parameters

key
String

Property key.

value
Boolean

Property value.

Exceptions

'key' is null.

Applies to

SetProperty(String, DateTime)

Sets a property on the event details.

public virtual void SetProperty (string key, DateTime value);
abstract member SetProperty : string * DateTime -> unit
override this.SetProperty : string * DateTime -> unit
Public Overridable Sub SetProperty (key As String, value As DateTime)

Parameters

key
String

Property key.

value
DateTime

Property value.

Exceptions

'key' is null.

Applies to

SetProperty(String, Double)

Sets a property on the event details.

public virtual void SetProperty (string key, double value);
abstract member SetProperty : string * double -> unit
override this.SetProperty : string * double -> unit
Public Overridable Sub SetProperty (key As String, value As Double)

Parameters

key
String

Property key.

value
Double

Property value.

Exceptions

'key' is null.

Applies to

SetProperty(String, Guid)

Sets a property on the event details.

public virtual void SetProperty (string key, Guid value);
abstract member SetProperty : string * Guid -> unit
override this.SetProperty : string * Guid -> unit
Public Overridable Sub SetProperty (key As String, value As Guid)

Parameters

key
String

Property key.

value
Guid

Property value.

Exceptions

'key' is null.

Applies to

SetProperty(String, Int64)

Sets a property on the event details.

public virtual void SetProperty (string key, long value);
abstract member SetProperty : string * int64 -> unit
override this.SetProperty : string * int64 -> unit
Public Overridable Sub SetProperty (key As String, value As Long)

Parameters

key
String

Property key.

value
Int64

Property value.

Exceptions

'key' is null.

Applies to

SetProperty(String, String)

Sets a property on the event details.

public virtual void SetProperty (string key, string value);
abstract member SetProperty : string * string -> unit
override this.SetProperty : string * string -> unit
Public Overridable Sub SetProperty (key As String, value As String)

Parameters

key
String

Property key.

value
String

Property value.

Exceptions

'key' is null.

Applies to