87 references to new
System.Private.Windows.Core (2)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
189
using BSTR bstrText =
new
(s);
Windows\Win32\System\Variant\VARIANT.cs (1)
935
data = new() { bstrVal =
new
(value) }
System.Windows.Forms (82)
System\Windows\Forms\Accessibility\AccessibleObject.cs (28)
235
using BSTR set =
new
(value);
340
using BSTR set =
new
(value);
355
internal virtual BSTR GetValueInternal() => SystemIAccessible is null ?
new
(string.Empty) : SystemIAccessible.TryGetValue(CHILDID_SELF);
1193
:
new
(Name);
1207
:
new
(Value);
1221
:
new
(Description);
1256
:
new
(Help);
1267
*pszKeyboardShortcut =
new
(KeyboardShortcut);
1301
*pszDefaultAction =
new
(DefaultAction);
1380
*pRetVal = Value is null ? default :
new
(Value);
1953
:
new
(DefaultAction);
1963
:
new
(child.DefaultAction);
1993
:
new
(Description);
2003
:
new
(child.Description);
2084
:
new
(Help);
2094
:
new
(child.Help);
2130
*pszHelpFile =
new
(helpFile);
2145
*pszHelpFile =
new
(helpFile);
2169
:
new
(KeyboardShortcut);
2179
:
new
(child.KeyboardShortcut);
2208
:
new
(Name);
2218
:
new
(child.Name);
2230
:
new
(Name);
2413
:
new
(Value);
2423
:
new
(child.Value);
2433
((UIA.IAccessible.Interface)this).put_accName(ChildIdToVARIANT(childID),
new
(newName));
2473
((UIA.IAccessible.Interface)this).put_accValue(ChildIdToVARIANT(childID),
new
(newValue));
3041
*pRetVal = new
BSTR
(GetMultiViewProviderViewName(viewId));
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
261
public BSTR Name =>
new
(GetControl() is { } control ? GetNameForControl(control) : string.Empty);
313
*pbstrName =
new
(name);
System\Windows\Forms\ActiveX\AxHost.cs (1)
2284
hr = factory.Value->CreateInstanceLic(null, null, IID.Get<IUnknown>(), new
BSTR
(license), unknown);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
1091
using BSTR bstrSource =
new
(_control.GetType().FullName!);
1092
using BSTR bstrDescription =
new
(errorString);
1542
using VARIANT data = (VARIANT)new
BSTR
(Convert.ToBase64String(
1571
using VARIANT variant = (VARIANT)(new
BSTR
(value));
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
115
target->Name =
new
(source.Name);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
57
using BSTR guidString =
new
(_guidString);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
73
return name.IsNull ?
new
(string.Empty) : name;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (10)
111
using BSTR newValue =
new
(value);
134
using BSTR newValue =
new
(value);
319
using BSTR newValue =
new
(value);
336
using BSTR newValue =
new
(value ? "rtl" : "ltr");
353
using BSTR newValue =
new
(value);
433
using BSTR bstrCommand =
new
(command);
451
using BSTR bstrId =
new
(id);
468
using BSTR bstrTagName =
new
(tagName);
477
using BSTR url =
new
("text/html");
494
using BSTR bstrElementTag =
new
(elementTag);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
56
using BSTR name =
new
(eventName);
89
using BSTR name =
new
(eventName);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (11)
198
using BSTR newValue =
new
(value);
217
using BSTR newValue =
new
(value);
246
using BSTR newValue =
new
(value);
346
using BSTR newValue =
new
(value);
375
using BSTR newValue =
new
(value);
470
using BSTR newValue =
new
(value);
540
using BSTR name =
new
(attributeName);
551
using BSTR name =
new
(tagName);
560
using BSTR where =
new
(orientation.ToString());
645
using BSTR name =
new
(eventName);
663
using BSTR name =
new
(attributeName);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
81
using BSTR name =
new
(eventName);
113
using BSTR name =
new
(eventName);
System\Windows\Forms\Controls\WebBrowser\HtmlToClrEventProxy.cs (3)
106
*pbstrName =
new
(OnHtmlEventName);
109
*pbstrName =
new
(EventNameProperty);
112
*pbstrName =
new
(GetEventName);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (14)
136
using BSTR newValue =
new
(value);
217
using BSTR newValue =
new
(value);
258
using BSTR bstrMessage =
new
(message);
274
using BSTR bstrMessage =
new
(message);
310
using BSTR bstrUrl =
new
(url.ToString());
321
using BSTR url =
new
(urlString);
332
using BSTR url =
new
(urlString);
333
using BSTR bstrTarget =
new
(target);
334
using BSTR options =
new
(windowOptions);
350
using BSTR url =
new
(urlString);
351
using BSTR target =
new
("_blank");
352
using BSTR options =
new
(windowOptions);
364
using BSTR bstrMessage =
new
(message);
365
using BSTR input =
new
(defaultInputValue);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (2)
48
using BSTR name =
new
(eventName);
79
using BSTR name =
new
(eventName);
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Automation\UiaTextRange.cs (2)
441
?
new
(text[Start..])
442
:
new
(text.Substring(Start, maxLength));
Windows\Win32\PInvoke.UiaRaiseNotificationEvent.cs (1)
21
using BSTR bstrText = displayString is null ? default :
new
(displayString);