 | EntityExtensionsRefreshAsync(IEnumerableEntity, EntityQueryOptions, ICollectionString, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Asynchronously fetch information for a sequence of entities.
Namespace: WikiClientLibrary.WikibaseAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic static Task RefreshAsync(
this IEnumerable<Entity> entities,
EntityQueryOptions options,
ICollection<string>? languages,
CancellationToken cancellationToken
)
<ExtensionAttribute>
Public Shared Function RefreshAsync (
entities As IEnumerable(Of Entity),
options As EntityQueryOptions,
languages As ICollection(Of String),
cancellationToken As CancellationToken
) As Task
Dim entities As IEnumerable(Of Entity)
Dim options As EntityQueryOptions
Dim languages As ICollection(Of String)
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = entities.RefreshAsync(options,
languages, cancellationToken)
public:
[ExtensionAttribute]
static Task^ RefreshAsync(
IEnumerable<Entity^>^ entities,
EntityQueryOptions options,
ICollection<String^>^ languages,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member RefreshAsync :
entities : IEnumerable<Entity> *
options : EntityQueryOptions *
languages : ICollection<string> *
cancellationToken : CancellationToken -> Task
Parameters
- entities IEnumerableEntity
- A sequence of entities to be refreshed.
- options EntityQueryOptions
- Provides options when performing the query.
- languages ICollectionString
-
Filter down the internationalized values to the specified one or more language codes.
Set to null to fetch for all available languages.
- cancellationToken CancellationToken
- The token used to cancel the operation.
Return Value
TaskUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableEntity. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also