共用方式為


CodeActivityPublicEnvironmentAccessor.TryGetReferenceToPublicLocation 方法

定義

傳回值,這個值表示活動是否會嘗試取得公共位置的參考。

public:
 bool TryGetReferenceToPublicLocation(System::Activities::LocationReference ^ publicReference, [Runtime::InteropServices::Out] System::Activities::LocationReference ^ % equivalentReference);
public bool TryGetReferenceToPublicLocation (System.Activities.LocationReference publicReference, out System.Activities.LocationReference equivalentReference);
member this.TryGetReferenceToPublicLocation : System.Activities.LocationReference * LocationReference -> bool
Public Function TryGetReferenceToPublicLocation (publicReference As LocationReference, ByRef equivalentReference As LocationReference) As Boolean

參數

publicReference
LocationReference

公用參考位置。

equivalentReference
LocationReference

對等的參考位置。

傳回

如果活動將嘗試取得公用位置的參考,則為 true,否則為false

適用於