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
。