ActivityTrackingCondition.Value Property
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.
The value that is to be compared with Member.
public:
virtual property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
public override string Value { get; set; }
member this.Value : string with get, set
Public Overrides Property Value As String
Property Value
The value used in the comparison.
Examples
The following code sample demonstrates accessing the Value property. This example is from the Tracking Profile Designer SDK sample. For more information, see Tracking Profile Designer Sample.
/// <summary>
/// Saves a tracking condition for an activity
/// </summary>
/// <param name="activity"></param>
/// <param name="key"></param>
/// <param name="member"></param>
/// <param name="op"></param>
/// <param name="value"></param>
internal void SaveTrackingCondition(Activity activity, ref ActivityTrackingCondition key, string member, ComparisonOperator op, string value)
{
ActivityTrackPoint trackPoint = GetTrackPointForActivity(activity);
if (trackPoint != null)
{
if (key == null)
{
key = new ActivityTrackingCondition();
trackPoint.MatchingLocations[0].Conditions.Add(key);
}
key.Member = member;
key.Value = value;
key.Operator = op;
}
}
' Saves a tracking condition for an activity
' <param name="activity"></param>
' <param name="key"></param>
' <param name="member"></param>
' <param name="op"></param>
' <param name="value"></param>
Friend Sub SaveTrackingCondition(ByVal activity As Activity, ByRef key As ActivityTrackingCondition, ByVal member As String, ByVal op As ComparisonOperator, ByVal value As String)
Dim trackPoint As ActivityTrackPoint = GetTrackPointForActivity(activity)
If trackPoint IsNot Nothing Then
If (key Is Nothing) Then
key = New ActivityTrackingCondition()
trackPoint.MatchingLocations(0).Conditions.Add(key)
End If
key.Member = member
key.Value = value
key.Operator = op
End If
End Sub
Remarks
Value is compared to the value of
If you use the parameterless constructor for ActivityTrackingCondition, you must explicitly set Value.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기