TelemetrySession.AddCommonPropertyRange 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加可能为会话的所有事件通用但不应具有 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 时引发