UnityContentProviderResolverTryResolveAsync - метод
Returns a content provider for the specified type, or if no provider is found.
Пространство имён: Tessa.ContentСборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
public ValueTask<IContentProvider> TryResolveAsync(
string type,
CancellationToken cancellationToken = default
)
Public Function TryResolveAsync (
type As String,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IContentProvider)
public:
virtual ValueTask<IContentProvider^> TryResolveAsync(
String^ type,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract TryResolveAsync :
type : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IContentProvider>
override TryResolveAsync :
type : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IContentProvider>
- type String
- The type of content for which provider is requested.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskIContentProviderIContentProvider for the specified
type, or
if no provider is found.
IContentProviderResolverTryResolveAsync(String, CancellationToken)