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

适用于