LocationReferenceEnvironment.TryGetLocationReference 方法

定義

當在派生類別中覆寫時,會嘗試取得指定的 LocationReference

public:
 abstract bool TryGetLocationReference(System::String ^ name, [Runtime::InteropServices::Out] System::Activities::LocationReference ^ % result);
public abstract bool TryGetLocationReference(string name, out System.Activities.LocationReference result);
abstract member TryGetLocationReference : string * LocationReference -> bool
Public MustOverride Function TryGetLocationReference (name As String, ByRef result As LocationReference) As Boolean

參數

name
String

要取回的 LocationReference 名稱。

result
LocationReference

當此方法回傳true時,包含result指定名稱的 ;LocationReference否則,。 null 這個參數會未初始化傳遞。

傳回

true 若存在指定名稱的 a LocationReference ;否則, false

適用於