CoreWebView2Profile.GetEffectiveFeaturesForOriginAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the effective feature settings for a specified origin asynchronously. Returns the effective (computed) settings for all features in CoreWebView2OriginFeature, including features that were not explicitly configured via SetOriginFeatures(IEnumerable<String>, IEnumerable<KeyValuePair<CoreWebView2OriginFeature,CoreWebView2OriginFeatureState>>) and thus have their default values. The order of features in the returned collection is not guaranteed.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.Web.WebView2.Core.CoreWebView2OriginFeature,Microsoft.Web.WebView2.Core.CoreWebView2OriginFeatureState>>> GetEffectiveFeaturesForOriginAsync(string origin);
member this.GetEffectiveFeaturesForOriginAsync : string -> System.Threading.Tasks.Task<seq<System.Collections.Generic.KeyValuePair<Microsoft.Web.WebView2.Core.CoreWebView2OriginFeature, Microsoft.Web.WebView2.Core.CoreWebView2OriginFeatureState>>>
Public Function GetEffectiveFeaturesForOriginAsync (origin As String) As Task(Of IEnumerable(Of KeyValuePair(Of CoreWebView2OriginFeature, CoreWebView2OriginFeatureState)))
Parameters
- origin
- String
The origin to query. Must be a valid origin with a
scheme and host (e.g. "https://www.example.com"), otherwise the method
fails with E_INVALIDARG. Must not be null.
Returns
A collection of feature/state pairs for every feature in the enum.
Exceptions
origin is null.