CodeActivityPublicEnvironmentAccessor.TryGetAccessToPublicLocation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指示活动是否会尝试获取对公共位置的访问的值。
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
。