共用方式為


CodeActivityPublicEnvironmentAccessor.TryGetAccessToPublicLocation 方法

定義

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

public:
 bool TryGetAccessToPublicLocation(System::Activities::LocationReference ^ publicLocation, System::Activities::ArgumentDirection accessDirection, [Runtime::InteropServices::Out] System::Activities::LocationReference ^ % equivalentLocation);
public bool TryGetAccessToPublicLocation (System.Activities.LocationReference publicLocation, System.Activities.ArgumentDirection accessDirection, out System.Activities.LocationReference equivalentLocation);
member this.TryGetAccessToPublicLocation : System.Activities.LocationReference * System.Activities.ArgumentDirection * LocationReference -> bool
Public Function TryGetAccessToPublicLocation (publicLocation As LocationReference, accessDirection As ArgumentDirection, ByRef equivalentLocation As LocationReference) As Boolean

參數

publicLocation
LocationReference

公用位置參考。

accessDirection
ArgumentDirection

存取方向的參考。

equivalentLocation
LocationReference

對等的位置參考。

傳回

如果要嘗試的活動將會存取公用位置,則為 true,否則為false

適用於