18 references to TryQuery
System.Private.Windows.Core (1)
Windows\Win32\System\Com\ComScope.cs (1)
104/// use the interface, otherwise use <see cref="TryQuery{TTo}(out HRESULT)"/>.
System.Windows.Forms (16)
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
42using var document = container.TryQuery<IHTMLDocument>(out HRESULT hr);
System\Windows\Forms\Application.ComponentThreadContext.cs (2)
103using var serviceProvider = messageFilter.TryQuery<ComIServiceProvider>(out HRESULT hr); 120var componentManager = serviceHandle.TryQuery<IMsoComponentManager>(out hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
873using var iSupportErrorInfo = dispatch.TryQuery<ISupportErrorInfo>(out hr);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1660using var textDocument = richEdit.TryQuery<ITextDocument>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (2)
53var scope = htmlDoc2.TryQuery<T>(out HRESULT hr); 487using var htmlDoc = dispatch.TryQuery<IHTMLDocument>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (5)
128using var htmlDocument = dispatch.TryQuery<IHTMLDocument>(out HRESULT hr); 170using var node = htmlElement.TryQuery<IHTMLDOMNode>(out HRESULT hr); 275var scope = htmlElement.TryQuery<T>(out HRESULT hr); 286using var node = htmlElement.TryQuery<IHTMLDOMNode>(out HRESULT hr); 575using var scriptDispatch = htmlElement.TryQuery<IDispatch>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (2)
47var scope = htmlWindow2.TryQuery<T>(out HRESULT hr); 81using var htmlDoc = htmlDoc2.TryQuery<IHTMLDocument>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
224using var iHTMLDocument2 = dispatch.TryQuery<IHTMLDocument2>(out HRESULT hr); 238using var htmlDoc = dispatch.TryQuery<IHTMLDocument>(out hr);
System.Windows.Forms.UI.IntegrationTests (1)
RichTextBoxTests.cs (1)
217using var textDocument = richEdit.TryQuery<ITextDocument>(out HRESULT hr);