87 references to new
System.Private.Windows.Core (2)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
189using BSTR bstrText = new(s);
Windows\Win32\System\Variant\VARIANT.cs (1)
935data = new() { bstrVal = new(value) }
System.Windows.Forms (82)
System\Windows\Forms\Accessibility\AccessibleObject.cs (28)
235using BSTR set = new(value); 340using BSTR set = new(value); 355internal 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)
261public BSTR Name => new(GetControl() is { } control ? GetNameForControl(control) : string.Empty); 313*pbstrName = new(name);
System\Windows\Forms\ActiveX\AxHost.cs (1)
2284hr = factory.Value->CreateInstanceLic(null, null, IID.Get<IUnknown>(), new BSTR(license), unknown);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
1091using BSTR bstrSource = new(_control.GetType().FullName!); 1092using BSTR bstrDescription = new(errorString); 1542using VARIANT data = (VARIANT)new BSTR(Convert.ToBase64String( 1571using VARIANT variant = (VARIANT)(new BSTR(value));
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
115target->Name = new(source.Name);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
57using BSTR guidString = new(_guidString);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
73return name.IsNull ? new(string.Empty) : name;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (10)
111using BSTR newValue = new(value); 134using BSTR newValue = new(value); 319using BSTR newValue = new(value); 336using BSTR newValue = new(value ? "rtl" : "ltr"); 353using BSTR newValue = new(value); 433using BSTR bstrCommand = new(command); 451using BSTR bstrId = new(id); 468using BSTR bstrTagName = new(tagName); 477using BSTR url = new("text/html"); 494using BSTR bstrElementTag = new(elementTag);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
56using BSTR name = new(eventName); 89using BSTR name = new(eventName);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (11)
198using BSTR newValue = new(value); 217using BSTR newValue = new(value); 246using BSTR newValue = new(value); 346using BSTR newValue = new(value); 375using BSTR newValue = new(value); 470using BSTR newValue = new(value); 540using BSTR name = new(attributeName); 551using BSTR name = new(tagName); 560using BSTR where = new(orientation.ToString()); 645using BSTR name = new(eventName); 663using BSTR name = new(attributeName);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
81using BSTR name = new(eventName); 113using 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)
136using BSTR newValue = new(value); 217using BSTR newValue = new(value); 258using BSTR bstrMessage = new(message); 274using BSTR bstrMessage = new(message); 310using BSTR bstrUrl = new(url.ToString()); 321using BSTR url = new(urlString); 332using BSTR url = new(urlString); 333using BSTR bstrTarget = new(target); 334using BSTR options = new(windowOptions); 350using BSTR url = new(urlString); 351using BSTR target = new("_blank"); 352using BSTR options = new(windowOptions); 364using BSTR bstrMessage = new(message); 365using BSTR input = new(defaultInputValue);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (2)
48using BSTR name = new(eventName); 79using 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)
21using BSTR bstrText = displayString is null ? default : new(displayString);