TelemetrySession.AddCommonPropertyRange 方法

定义

添加可能为会话的所有事件通用但不应具有 Default.Context 前缀的属性。 在会话之间不会保留属性。 若要添加单个属性,请参阅 TryAddCommonProperty(String, Object)

public void AddCommonPropertyRange(System.Collections.Generic.IDictionary<string,object> properties);
member this.AddCommonPropertyRange : System.Collections.Generic.IDictionary<string, obj> -> unit
Public Sub AddCommonPropertyRange (properties As IDictionary(Of String, Object))

参数

properties
IDictionary<String,Object>

例外

属性、键或值为 null 时引发

当属性键或值为 null 时引发

适用于