語言

ResourceExplorer.TryGetResource(String, Resource) 方法

定義

試著用 ID 取得資源。

public bool TryGetResource(string id, out Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource resource);
member this.TryGetResource : string * Resource -> bool
Public Function TryGetResource (id As String, ByRef resource As Resource) As Boolean

參數

id
String

標識碼。

resource
Resource

找到的資源或空資源。

傳回

如果找到,則為 true。

適用於