共用方式為


UserTrackingLocation.KeyName 屬性

定義

取得或設定名稱,使用者資料必須與此名稱建立關聯才能比對 UserTrackingLocation

public:
 property System::String ^ KeyName { System::String ^ get(); void set(System::String ^ value); };
public string KeyName { get; set; }
member this.KeyName : string with get, set
Public Property KeyName As String

屬性值

string 索引鍵,使用者資料必須與此索引鍵關聯才能比對 UserTrackingLocation,否則為 null 參考 (在 Visual Basic 中為 Nothing)。

備註

活動設計工具或工作流程設計工具可使用 Activity.TrackData(String, Object)ActivityExecutionContext.TrackData(String, Object),使字串索引鍵和使用者事件中發出的使用者資料產生關聯。 如果 KeyName 不是 null 參考 (Nothing),則與使用者資料關聯的索引鍵必須符合 KeyName 的值才能比對 UserTrackingLocation。 如果 KeyName 是 null 參考 (Nothing),則執行階段追蹤基礎結構不會檢查符合的索引鍵,以判斷是否比對 UserTrackingLocation

適用於