Interface IPublishedContentQueryAccessor
Namespace: Umbraco.Cms.Core
Assembly: cs.temp.dll.dll
Syntax
public interface IPublishedContentQueryAccessor
Remarks
Not intended for use in background threads where you should make use of
// Background thread example
using UmbracoContextReference _ = _umbracoContextFactory.EnsureUmbracoContext();
using IServiceScope serviceScope = _serviceProvider.CreateScope();
IPublishedContentQuery query = serviceScope.ServiceProvider.GetRequiredService<IPublishedContentQuery>();
Methods
TryGetValue(out IPublishedContentQuery)
Declaration
bool TryGetValue(out IPublishedContentQuery publishedContentQuery)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContentQuery | publishedContentQuery |
Returns
Type | Description |
---|---|
System.Boolean |