163 instantiations of BSTR
System.Private.Windows.Core (1)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
190
using BSTR bstrText =
new
(s);
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)
2287
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);
System.Windows.Forms.Primitives.Tests (30)
Interop\Oleaut32\ITypeInfoTests.cs (8)
68
using BSTR dllName =
new
("DllName");
69
using BSTR name =
new
("Name");
88
using BSTR name =
new
("Name");
89
using BSTR docString =
new
("DocString");
91
using BSTR helpFile =
new
("HelpFile");
180
using BSTR mops =
new
("Mops");
195
rgszNames[0] = new
BSTR
("Name1");
196
rgszNames[1] = new
BSTR
("Name2");
Interop\Oleaut32\VARIANTTests.cs (21)
118
data = new() { bstrVal = new
BSTR
("abc") }
160
data = new() { bstrVal = new
BSTR
("abc") }
827
data = new() { bstrVal = new
BSTR
(text) }
845
using BSTR bstr =
new
(text);
1008
data = new() { bstrVal = new
BSTR
("test") }
1787
BSTR ptr1 =
new
("text");
1788
BSTR ptr2 =
new
("");
4377
using BSTR ptr1 =
new
("text");
4378
using BSTR ptr2 =
new
("");
4404
using BSTR ptr1 =
new
("text");
4405
using BSTR ptr2 =
new
("");
4431
using BSTR ptr1 =
new
("text");
4432
using BSTR ptr2 =
new
("");
4433
using BSTR ptr3 =
new
("text3");
4434
using BSTR ptr4 =
new
("text4");
4435
using BSTR ptr5 =
new
("text5");
4468
using BSTR ptr1 =
new
("text");
4469
using BSTR ptr2 =
new
("");
4470
using BSTR ptr3 =
new
("text3");
4471
using BSTR ptr4 =
new
("text4");
4472
using BSTR ptr5 =
new
("text5");
System\Windows\Forms\Automation\UiaTextRangeTests.cs (1)
431
using BSTR bstrText =
new
(textToSearch);
System.Windows.Forms.Tests (47)
System\Windows\Forms\HtmlDocumentTests.cs (15)
514
using BSTR charSet =
new
("UTF-8");
619
using BSTR charSet =
new
("UTF-8");
1119
using BSTR bstrRtl =
new
(rtl);
1208
using BSTR bstrTitle =
new
(title);
1490
using BSTR name =
new
(eventName);
2019
using BSTR onClick =
new
("onclick");
2057
using BSTR onContextMenu =
new
("oncontextmenu");
2095
using BSTR onFocusing =
new
("onfocusin");
2133
using BSTR onFocusOut =
new
("onfocusout");
2171
using BSTR onMouseDown =
new
("onmousedown");
2209
using BSTR onMouseOut =
new
("onmouseout");
2247
using BSTR onMouseMove =
new
("onmousemove");
2285
using BSTR onMouseOver =
new
("onmouseover");
2323
using BSTR onMouseUp =
new
("onmouseup");
2361
using BSTR onStop =
new
("onstop");
System\Windows\Forms\HtmlElementTests.cs (32)
354
using BSTR bstrId =
new
(id);
444
using BSTR innerHtml =
new
(value);
565
using BSTR innerHtml =
new
(value);
683
using BSTR name =
new
("name");
709
using BSTR name =
new
("name");
866
using BSTR innerHtml =
new
(value);
977
using BSTR innerHtml =
new
(value);
1290
using BSTR bstrStyle =
new
(style);
1600
using BSTR name =
new
(eventName);
1643
using BSTR name =
new
(eventName);
1683
using BSTR name =
new
(eventName);
1871
using BSTR id =
new
("id");
1874
using BSTR customAttribute =
new
("customAttribute");
2567
using BSTR onClick =
new
("onclick");
2608
using BSTR ondblclick =
new
("ondblclick");
2649
using BSTR onDrag =
new
("ondrag");
2690
using BSTR onDragEnd =
new
("ondragend");
2731
using BSTR onDragLeave =
new
("ondragleave");
2772
using BSTR onDragOver =
new
("ondragover");
2813
using BSTR onFocus =
new
("onfocus");
2854
using BSTR onFocusin =
new
("onfocusin");
2895
using BSTR onFocusOut =
new
("onfocusout");
2936
using BSTR onBlur =
new
("onblur");
2977
using BSTR onKeyDown =
new
("onkeydown");
3018
using BSTR onKeyPress =
new
("onkeypress");
3059
using BSTR onKeyUp =
new
("onkeyup");
3100
using BSTR onMouseDown =
new
("onmousedown");
3141
using BSTR onMouseEnter =
new
("onmouseenter");
3182
using BSTR onMouseLeave =
new
("onmouseleave");
3225
using BSTR onMouseMove =
new
("onmousemove");
3264
using BSTR onMouseOver =
new
("onmouseover");
3305
using BSTR onMouseUp =
new
("onmouseup");
471 references to BSTR
System.Private.Windows.Core (8)
Windows\Win32\Foundation\BSTR.cs (2)
27
/// Converts the <see cref="
BSTR
"/> to string and frees it.
37
/// Converts the <see cref="
BSTR
"/> to a nullable string and frees it.
Windows\Win32\System\Com\SafeArrayScope.cs (3)
156
using
BSTR
result = GetElement<
BSTR
>(i);
190
using
BSTR
bstrText = new(s);
Windows\Win32\System\Variant\VARIANT.cs (3)
917
public static explicit operator
BSTR
(VARIANT value)
918
=> value.vt == VT_BSTR ? value.data.bstrVal : ThrowInvalidCast<
BSTR
>();
930
public static explicit operator VARIANT(
BSTR
value)
System.Windows.Forms (178)
System\Windows\Forms\Accessibility\AccessibleObject.cs (43)
163
internal virtual
BSTR
GetDefaultActionInternal() => SystemIAccessible.TryGetDefaultAction(CHILDID_SELF);
183
internal virtual
BSTR
GetDescriptionInternal() => SystemIAccessible.TryGetDescription(CHILDID_SELF);
205
internal virtual
BSTR
GetHelpInternal() => SystemIAccessible.TryGetHelp(CHILDID_SELF);
225
internal virtual
BSTR
GetKeyboardShortcutInternal(VARIANT childID) => SystemIAccessible.TryGetKeyboardShortcut(childID);
235
using
BSTR
set = new(value);
253
internal virtual
BSTR
GetNameInternal() => SystemIAccessible.TryGetName(CHILDID_SELF);
256
/// Determines if <see cref="SetNameInternal(
BSTR
)"/> can be called without calling <see cref="Name"/>
268
internal virtual void SetNameInternal(
BSTR
value) => SystemIAccessible.TrySetName(CHILDID_SELF, value);
340
using
BSTR
set = new(value);
355
internal virtual
BSTR
GetValueInternal() => SystemIAccessible is null ? new(string.Empty) : SystemIAccessible.TryGetValue(CHILDID_SELF);
358
/// Determines if <see cref="SetValueInternal(
BSTR
)"/> can be called without calling <see cref="Value"/>
370
internal virtual void SetValueInternal(
BSTR
value) => SystemIAccessible.TrySetValue(CHILDID_SELF, value);
470
(int topic,
BSTR
file) = SystemIAccessible.TryGetHelpTopic(CHILDID_SELF);
488
internal virtual (int topic,
BSTR
helpFile) GetHelpTopicInternal() => SystemIAccessible.TryGetHelpTopic(CHILDID_SELF);
1184
HRESULT ILegacyIAccessibleProvider.Interface.get_Name(
BSTR
* pszName)
1197
HRESULT ILegacyIAccessibleProvider.Interface.get_Value(
BSTR
* pszValue)
1212
HRESULT ILegacyIAccessibleProvider.Interface.get_Description(
BSTR
* pszDescription)
1247
HRESULT ILegacyIAccessibleProvider.Interface.get_Help(
BSTR
* pszHelp)
1260
HRESULT ILegacyIAccessibleProvider.Interface.get_KeyboardShortcut(
BSTR
* pszKeyboardShortcut)
1294
HRESULT ILegacyIAccessibleProvider.Interface.get_DefaultAction(
BSTR
* pszDefaultAction)
1373
HRESULT IValueProvider.Interface.get_Value(
BSTR
* pRetVal)
1934
using
BSTR
result = default;
1939
HRESULT UIA.IAccessible.Interface.get_accDefaultAction(VARIANT varChild,
BSTR
* pszDefaultAction)
1974
using
BSTR
description = default;
1979
HRESULT UIA.IAccessible.Interface.get_accDescription(VARIANT varChild,
BSTR
* pszDescription)
2066
using
BSTR
result = default;
2071
HRESULT UIA.IAccessible.Interface.get_accHelp(VARIANT varChild,
BSTR
* pszHelp)
2105
using
BSTR
helpFile = default;
2112
HRESULT UIA.IAccessible.Interface.get_accHelpTopic(
BSTR
* pszHelpFile, VARIANT varChild, int* pidTopic)
2156
using
BSTR
shortcut = default;
2161
HRESULT UIA.IAccessible.Interface.get_accKeyboardShortcut(VARIANT varChild,
BSTR
* pszKeyboardShortcut)
2190
using
BSTR
name = default;
2195
HRESULT UIA.IAccessible.Interface.get_accName(VARIANT varChild,
BSTR
* pszName)
2223
BSTR
systemName = SystemIAccessible.TryGetName(varChild);
2394
using
BSTR
value = default;
2399
HRESULT UIA.IAccessible.Interface.get_accValue(VARIANT varChild,
BSTR
* pszValue)
2435
HRESULT UIA.IAccessible.Interface.put_accName(VARIANT varChild,
BSTR
szName)
2475
HRESULT UIA.IAccessible.Interface.put_accValue(VARIANT varChild,
BSTR
szValue)
2782
/// Called prior to calling <see cref="UIA.IAccessible.get_accName(VARIANT,
BSTR
*)"/> on the 'inner' system
3034
HRESULT IMultipleViewProvider.Interface.GetViewName(int viewId,
BSTR
* pRetVal)
3329
HRESULT IDispatchEx.Interface.GetDispID(
BSTR
bstrName, uint grfdex, int* pid)
3342
HRESULT IDispatchEx.Interface.DeleteMemberByName(
BSTR
bstrName, uint grfdex)
3351
HRESULT IDispatchEx.Interface.GetMemberName(int id,
BSTR
* pbstrName)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (21)
48
public static
BSTR
TryGetDefaultAction(this AgileComPointer<IAccessible>? agile, int child)
51
public static
BSTR
TryGetDefaultAction(this AgileComPointer<IAccessible>? agile, VARIANT child)
59
BSTR
bstr = default;
82
public static
BSTR
TryGetDescription(this AgileComPointer<IAccessible>? agile, int child) =>
85
public static
BSTR
TryGetDescription(this AgileComPointer<IAccessible>? agile, VARIANT child)
93
BSTR
description = default;
102
public static
BSTR
TryGetHelp(this AgileComPointer<IAccessible>? agile, int child)
105
public static
BSTR
TryGetHelp(this AgileComPointer<IAccessible>? agile, VARIANT child)
113
BSTR
bstr = default;
122
public static
BSTR
TryGetKeyboardShortcut(this AgileComPointer<IAccessible>? agile, int child)
125
public static
BSTR
TryGetKeyboardShortcut(this AgileComPointer<IAccessible>? agile, VARIANT child)
133
BSTR
bstr = default;
142
public static
BSTR
TryGetName(this AgileComPointer<IAccessible>? agile, int child)
145
public static
BSTR
TryGetName(this AgileComPointer<IAccessible>? agile, VARIANT child)
153
BSTR
bstr = default;
160
public static void TrySetName(this AgileComPointer<IAccessible>? agile, VARIANT child,
BSTR
name)
221
public static
BSTR
TryGetValue(this AgileComPointer<IAccessible>? agile, VARIANT child)
229
BSTR
bstr = default;
238
public static void TrySetValue(this AgileComPointer<IAccessible>? agile, VARIANT child,
BSTR
value)
258
public static (int topic,
BSTR
helpFile) TryGetHelpTopic(this AgileComPointer<IAccessible>? agile, VARIANT child)
266
BSTR
file = default;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (3)
261
public
BSTR
Name => new(GetControl() is { } control ? GetNameForControl(control) : string.Empty);
297
protected override HRESULT GetDispID(
BSTR
bstrName, uint grfdex, int* pid)
309
protected override HRESULT GetMemberName(int id,
BSTR
* pbstrName)
System\Windows\Forms\ActiveX\AxHost.cs (4)
2248
using
BSTR
key = default;
2368
using
BSTR
name = default;
3793
using
BSTR
name = (
BSTR
)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_NAME);
System\Windows\Forms\ActiveX\AxHost.VBFormat.cs (2)
16
BSTR
bstrFormat,
35
using
BSTR
pbstr = default;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1091
using
BSTR
bstrSource = new(_control.GetType().FullName!);
1092
using
BSTR
bstrDescription = new(errorString);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
49
using
BSTR
categoryName = default;
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (2)
50
BSTR
* nativeTypeNames;
197
private static string[] GetStringsFromPtr(
BSTR
* values, uint count)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
44
using
BSTR
value = default;
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
22
using
BSTR
guid = default;
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
63
using
BSTR
helpString = default;
135
using
BSTR
name = default;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
57
using
BSTR
guidString = new(_guidString);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
883
using
BSTR
description = default;
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
490
using
BSTR
nameBstr = default;
491
using
BSTR
helpStringBstr = default;
711
using
BSTR
enumNameBstr = default;
712
using
BSTR
enumHelpStringBstr = default;
736
using
BSTR
nameBstr = default;
737
using
BSTR
helpBstr = default;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
76
using
BSTR
className = default;
89
using
BSTR
typeInfoName = default;
System\Windows\Forms\Controls\ComboBox\ComboBox.ChildAccessibleObject.cs (1)
26
internal override
BSTR
GetNameInternal() => _owner.AccessibilityObject.GetNameInternal();
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (3)
50
internal override
BSTR
GetDefaultActionInternal() => SystemIAccessible.TryGetDefaultAction(GetChildId());
88
internal override
BSTR
GetHelpInternal() => SystemIAccessible.TryGetHelp(GetChildId());
92
internal override
BSTR
GetKeyboardShortcutInternal(VARIANT childID) => SystemIAccessible.TryGetKeyboardShortcut(childID);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (2)
70
internal override
BSTR
GetNameInternal()
72
BSTR
name = _owner.AccessibilityObject.GetNameInternal();
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
61
internal override
BSTR
GetDefaultActionInternal() =>
127
internal override
BSTR
GetHelpInternal() => _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetHelp(GetChildId());
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
85
internal override
BSTR
GetDefaultActionInternal() =>
90
internal override
BSTR
GetHelpInternal() => _owningAccessibleObject.SystemIAccessible.TryGetHelp(GetChildId());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStrip.PropertyGridToolStripAccessibleObject.cs (1)
72
internal override
BSTR
GetNameInternal()
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (3)
49
internal override
BSTR
GetDefaultActionInternal() => SystemIAccessibleInternal.TryGetDefaultAction(GetChildId());
112
internal override
BSTR
GetHelpInternal() => SystemIAccessibleInternal.TryGetHelp(GetChildId());
116
internal override
BSTR
GetKeyboardShortcutInternal(VARIANT childID) => SystemIAccessibleInternal.TryGetKeyboardShortcut(childID);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.ToolStripDropDownAccessibleObject.cs (1)
52
internal override
BSTR
GetNameInternal()
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
39
internal override
BSTR
GetHelpInternal()
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (2)
36
internal override void SetNameInternal(
BSTR
value) => _parent.AccessibilityObject.SetNameInternal(value);
42
internal override
BSTR
GetKeyboardShortcutInternal(VARIANT childID) => _parent.AccessibilityObject.GetKeyboardShortcutInternal(childID);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (17)
102
using
BSTR
domain = default;
111
using
BSTR
newValue = new(value);
127
using
BSTR
title = default;
134
using
BSTR
newValue = new(value);
151
using
BSTR
href = default;
312
using
BSTR
cookie = default;
319
using
BSTR
newValue = new(value);
329
using
BSTR
dir = default;
336
using
BSTR
newValue = new(value ? "rtl" : "ltr");
346
using
BSTR
charset = default;
353
using
BSTR
newValue = new(value);
363
using
BSTR
charset = default;
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 (18)
191
using
BSTR
id = default;
198
using
BSTR
newValue = new(value);
208
using
BSTR
innerHtml = default;
217
using
BSTR
newValue = new(value);
237
using
BSTR
innerText = default;
246
using
BSTR
newValue = new(value);
337
using
BSTR
outerHtml = default;
346
using
BSTR
newValue = new(value);
366
using
BSTR
outerText = default;
375
using
BSTR
newValue = new(value);
461
using
BSTR
cssText = default;
470
using
BSTR
newValue = new(value);
480
using
BSTR
tagName = default;
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 (2)
48
protected override unsafe HRESULT GetDispID(
BSTR
bstrName, uint grfdex, int* pid)
96
protected override unsafe HRESULT GetMemberName(int id,
BSTR
* pbstrName)
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (17)
129
using
BSTR
name = default;
136
using
BSTR
newValue = new(value);
210
using
BSTR
status = default;
217
using
BSTR
newValue = new(value);
234
using
BSTR
href = default;
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\Controls\WebBrowser\WebBrowser.cs (5)
232
using
BSTR
href = default;
349
using
BSTR
locationName = default;
357
using
BSTR
title = default;
382
using
BSTR
mimeType = default;
568
using
BSTR
url = default;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (3)
41
internal override
BSTR
GetDefaultActionInternal() =>
46
internal override unsafe
BSTR
GetDescriptionInternal() =>
51
internal override
BSTR
GetNameInternal() => ParentInternal.SystemIAccessible.TryGetName(GetChildId());
System.Windows.Forms.Primitives (48)
Microsoft\VisualStudio\Shell\ICategorizeProperties.cs (4)
66
BSTR
* pbstrName)
69
return ((delegate* unmanaged[Stdcall]<ICategorizeProperties*, PROPCAT, int,
BSTR
*, HRESULT>)_lpVtbl[2])(pThis, propcat, lcid, pbstrName);
90
/// Returns a <see cref="
BSTR
"/> containing the category name.
98
BSTR
* pbstrName);
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (10)
58
BSTR
* pbstrGuidBldr,
62
return ((delegate* unmanaged[Stdcall]<IProvidePropertyBuilder*, int, CTLBLDTYPE*,
BSTR
*, VARIANT_BOOL*, HRESULT>)_lpVtbl[3])(
72
BSTR
* bstrGuidBldr,
79
return ((delegate* unmanaged[Stdcall]<IProvidePropertyBuilder*, int,
BSTR
*, IDispatch*, HWND, VARIANT*, VARIANT_BOOL*, HRESULT>)_lpVtbl[4])(
92
/// browser and are invoked through <see cref="ExecuteBuilder(int,
BSTR
*, IDispatch*, HWND, VARIANT*, VARIANT_BOOL*)"/>
94
/// should be invoked for the current property from <see cref="MapPropertyToBuilder(int, CTLBLDTYPE*,
BSTR
*, VARIANT_BOOL*)"/>
115
BSTR
* pbstrGuidBldr,
123
/// The <see cref="
BSTR
"/> of the builder GUID to invoke. This is returned from
124
/// <see cref="MapPropertyToBuilder(int, CTLBLDTYPE*,
BSTR
*, VARIANT_BOOL*)"/>.
139
BSTR
* bstrGuidBldr,
Microsoft\VisualStudio\Shell\IVSMDPerPropertyBrowsing.cs (4)
56
/// <inheritdoc cref="Interface.GetPropertyAttributes(int, uint*,
BSTR
**, VARIANT**)"/>
60
BSTR
** ppbstrTypeNames,
64
return ((delegate* unmanaged[Stdcall]<IVSMDPerPropertyBrowsing*, int, uint*,
BSTR
**, VARIANT**, HRESULT>)_lpVtbl[3])(
104
BSTR
** ppbstrTypeNames,
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (15)
69
/// <inheritdoc cref="Interface.GetLocalizedPropertyInfo(int, uint,
BSTR
*,
BSTR
*)"/>
73
BSTR
* pbstrLocalizedName,
74
BSTR
* pbstrLocalizeDescription)
77
return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, int, uint,
BSTR
*,
BSTR
*, HRESULT>)_lpVtbl[5])(
103
/// <inheritdoc cref="Interface.GetClassName(
BSTR
*)"/>
105
BSTR
* pbstrClassName)
108
return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*,
BSTR
*, HRESULT>)_lpVtbl[8])(pThis, pbstrClassName);
159
BSTR
* pbstrLocalizedName,
160
BSTR
* pbstrLocalizeDescription);
183
/// <see cref="ITypeInfo.GetDocumentation(int,
BSTR
*,
BSTR
*, out uint,
BSTR
*)"/> with <see cref="PInvoke.MEMBERID_NIL"/>.
187
BSTR
* pbstrClassName);
System\Windows\Forms\Automation\UiaTextRange.cs (2)
281
HRESULT ITextRangeProvider.Interface.FindText(
BSTR
text, BOOL backward, BOOL ignoreCase, ITextRangeProvider** pRetVal)
424
HRESULT ITextRangeProvider.Interface.GetText(int maxLength,
BSTR
* pRetVal)
System\Windows\Forms\IExtender.cs (3)
74
internal delegate* unmanaged[Stdcall]<IExtender*,
BSTR
*, HRESULT> get_Name_20;
193
private static HRESULT get_Name(IExtender* @this,
BSTR
* value)
233
BSTR
Name { get; }
Windows\Win32\PInvoke.UiaRaiseNotificationEvent.cs (3)
11
/// <inheritdoc cref="UiaRaiseNotificationEvent(IRawElementProviderSimple*, NotificationKind, NotificationProcessing,
BSTR
,
BSTR
)"/>
21
using
BSTR
bstrText = displayString is null ? default : new(displayString);
Windows\Win32\System\Com\StandardDispatch.cs (5)
134
HRESULT IDispatchEx.Interface.GetDispID(
BSTR
bstrName, uint grfdex, int* pid)
137
protected virtual HRESULT GetDispID(
BSTR
bstrName, uint grfdex, int* pid) => HRESULT.E_NOTIMPL;
139
HRESULT IDispatchEx.Interface.GetMemberName(int id,
BSTR
* pbstrName)
142
protected virtual HRESULT GetMemberName(int id,
BSTR
* pbstrName) => HRESULT.E_NOTIMPL;
237
HRESULT IDispatchEx.Interface.DeleteMemberByName(
BSTR
bstrName, uint grfdex) => HRESULT.E_NOTIMPL;
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (2)
96
/// Matches up to <see cref="IDispatchEx.GetDispID(
BSTR
, uint, int*)"/>
110
/// Matches up to <see cref="IDispatchEx.GetMemberName(int,
BSTR
*)"/>
System.Windows.Forms.Primitives.Tests (41)
Interop\Oleaut32\ITypeInfoTests.cs (8)
68
using
BSTR
dllName = new("DllName");
69
using
BSTR
name = new("Name");
88
using
BSTR
name = new("Name");
89
using
BSTR
docString = new("DocString");
91
using
BSTR
helpFile = new("HelpFile");
180
using
BSTR
mops = new("Mops");
194
BSTR
* rgszNames = stackalloc
BSTR
[2];
Interop\Oleaut32\SAFEARRAYTests.cs (2)
140
public HRESULT GetName(
BSTR
* pbstrName) => throw new NotImplementedException();
158
public HRESULT GetFieldNames(uint* pcNames,
BSTR
* rgBstrNames) => throw new NotImplementedException();
Interop\Oleaut32\VARIANTTests.cs (19)
845
using
BSTR
bstr = new(text);
1787
BSTR
ptr1 = new("text");
1788
BSTR
ptr2 = new("");
4377
using
BSTR
ptr1 = new("text");
4378
using
BSTR
ptr2 = new("");
4404
using
BSTR
ptr1 = new("text");
4405
using
BSTR
ptr2 = new("");
4431
using
BSTR
ptr1 = new("text");
4432
using
BSTR
ptr2 = new("");
4433
using
BSTR
ptr3 = new("text3");
4434
using
BSTR
ptr4 = new("text4");
4435
using
BSTR
ptr5 = new("text5");
4468
using
BSTR
ptr1 = new("text");
4469
using
BSTR
ptr2 = new("");
4470
using
BSTR
ptr3 = new("text3");
4471
using
BSTR
ptr4 = new("text4");
4472
using
BSTR
ptr5 = new("text5");
5707
public HRESULT GetName(
BSTR
* pbstrName) => HRESULT.E_NOTIMPL;
5725
public HRESULT GetFieldNames(uint* pcNames,
BSTR
* rgBstrNames) => HRESULT.E_NOTIMPL;
System\Windows\Forms\Automation\UiaTextRangeTests.cs (2)
431
using
BSTR
bstrText = new(textToSearch);
876
using
BSTR
actual = default;
Windows\Win32\System\Ole\ClassPropertyDispatchAdapterTests.cs (1)
48
((
BSTR
)returnValue).ToStringAndFree().Should().Be("Q");
Windows\Win32\UI\Accessibility\AccessibleDispatchTests.cs (9)
35
HRESULT IAccessible.Interface.get_accName(VARIANT varChild,
BSTR
* pszName) => HRESULT.E_NOTIMPL;
36
HRESULT IAccessible.Interface.get_accValue(VARIANT varChild,
BSTR
* pszValue) => HRESULT.E_NOTIMPL;
37
HRESULT IAccessible.Interface.get_accDescription(VARIANT varChild,
BSTR
* pszDescription) => HRESULT.E_NOTIMPL;
40
HRESULT IAccessible.Interface.get_accHelp(VARIANT varChild,
BSTR
* pszHelp) => HRESULT.E_NOTIMPL;
41
HRESULT IAccessible.Interface.get_accHelpTopic(
BSTR
* pszHelpFile, VARIANT varChild, int* pidTopic) => HRESULT.E_NOTIMPL;
42
HRESULT IAccessible.Interface.get_accKeyboardShortcut(VARIANT varChild,
BSTR
* pszKeyboardShortcut) => HRESULT.E_NOTIMPL;
45
HRESULT IAccessible.Interface.get_accDefaultAction(VARIANT varChild,
BSTR
* pszDefaultAction) => HRESULT.E_NOTIMPL;
51
HRESULT IAccessible.Interface.put_accName(VARIANT varChild,
BSTR
szName) => HRESULT.E_NOTIMPL;
52
HRESULT IAccessible.Interface.put_accValue(VARIANT varChild,
BSTR
szValue) => HRESULT.E_NOTIMPL;
System.Windows.Forms.Tests (194)
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
245
Assert.Equal(expected, ((
BSTR
)actual).ToString());
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (2)
159
Assert.Equal(expected, ((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LocalizedControlTypePropertyId)).ToStringAndFree());
186
Assert.Equal("Collapse", ((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (1)
305
Assert.Equal(checkBox.AccessibilityObject.DefaultAction, ((
BSTR
)checkBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (3)
204
Assert.Equal(expected, ((
BSTR
)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
267
Assert.Equal(checkValue.ToString(), ((
BSTR
)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
325
Assert.Equal(isChecked, bool.Parse(((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()));
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (2)
38
Assert.Equal(testText, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
39
Assert.Equal(testText, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (3)
121
Assert.Equal(name, ((
BSTR
)comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
122
Assert.Equal(name, ((
BSTR
)comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
364
Assert.Equal(expectedAction, ((
BSTR
)comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (6)
219
Assert.Equal(accessibleDefaultActionDescription, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
1292
Assert.Equal(expectedValue, ((
BSTR
)controlAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AccessKeyPropertyId)).ToStringAndFree());
1347
Assert.Equal("Test Name", ((
BSTR
)controlAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
1348
Assert.Equal("Test Name", ((
BSTR
)controlAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
1393
Assert.Equal(expectedName, ((
BSTR
)controlAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
1623
Assert.Equal(expected, ((
BSTR
)actual).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (3)
118
Assert.Equal(string.Empty, ((
BSTR
)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree());
119
Assert.Equal(SR.DataGridView_AccEditingPanelAccName, ((
BSTR
)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
120
Assert.Equal(SR.DataGridView_AccEditingPanelAccName, ((
BSTR
)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (3)
41
string itemStatus = ((
BSTR
)dataGridView.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ItemStatusPropertyId)).ToStringAndFree();
69
string itemStatus = ((
BSTR
)dataGridView.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ItemStatusPropertyId)).ToStringAndFree();
1675
Assert.Equal(SR.NotSortedAccessibleStatus, ((
BSTR
)actual).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewButtonCellAccessibleObjectTests.cs (1)
31
Assert.Equal(SR.DataGridView_AccButtonCellDefaultAction, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (5)
158
Assert.Equal(expected, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
686
Assert.Equal(accessibleObject.Name, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
687
Assert.Equal(accessibleObject.Name, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
702
Assert.Equal(accessibleObject.Help ?? string.Empty, ((
BSTR
)actual).ToStringAndFree());
1046
Assert.Equal(expected, ((
BSTR
)dataGridViewCellAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (4)
81
Assert.False(bool.Parse(((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()));
85
Assert.True(bool.Parse(((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()));
168
Assert.Equal(SR.DataGridView_AccCheckBoxCellDefaultActionCheck, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
173
Assert.Equal(expected, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (2)
120
Assert.Equal(SR.DataGridView_AccColumnHeaderCellDefaultAction, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
151
Assert.Equal("Header text 1", ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
2386
Assert.Equal("test1", ((
BSTR
)dataGridView.Rows[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
207
Assert.Equal("Selected Cells", ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
216
Assert.Equal("Selected Row Cells", ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (4)
1243
Assert.Equal(string.Empty, ((
BSTR
)topRowAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree());
1244
Assert.Equal(SR.DataGridView_AccTopRow, ((
BSTR
)topRowAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
1245
Assert.Equal(SR.DataGridView_AccTopRow, ((
BSTR
)topRowAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
1246
Assert.Equal("Top Row", ((
BSTR
)topRowAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (2)
55
string actual = ((
BSTR
)dateTimePicker.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LocalizedControlTypePropertyId)).ToStringAndFree();
117
Assert.Equal(dt.ToLongDateString(), ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\GroupBoxAccessibleObjectTests.cs (3)
27
Assert.Equal(testAccName, ((
BSTR
)groupBoxAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
28
Assert.Equal(testAccName, ((
BSTR
)groupBoxAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
129
string actual = ((
BSTR
)ownerControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (1)
28
string value = ((
BSTR
)accessibilityObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (2)
202
string actual = ((
BSTR
)linkAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
238
string actual = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (2)
65
Assert.Equal(itemAccessibleObject.Name, ((
BSTR
)actual).ToStringAndFree());
114
string actual = ((
BSTR
)itemAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (2)
213
string accessibleName = ((
BSTR
)listAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
216
string automationId = ((
BSTR
)listAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (9)
62
string accessibleName = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
65
string automationId = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree();
94
Assert.Equal(list.DefaultGroup.Header, ((
BSTR
)defaultGroupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
95
Assert.Equal("Group1", ((
BSTR
)groupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
96
Assert.Equal("Group1", ((
BSTR
)groupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
98
Assert.Equal("ListViewGroup-0", ((
BSTR
)defaultGroupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree());
99
Assert.Equal("ListViewGroup-1", ((
BSTR
)groupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree());
109
Assert.Equal("WinForm", ((
BSTR
)groupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_FrameworkIdPropertyId)).ToStringAndFree());
126
string accessibleName = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (2)
100
string accessibleName = ((
BSTR
)listItemAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
104
string automationId = ((
BSTR
)listItemAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (3)
264
Assert.Equal("WinForm", ((
BSTR
)actual).ToString());
275
Assert.Equal(SR.AccessibleActionDoubleClick, ((
BSTR
)item.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
400
Assert.Equal(expected, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (3)
82
string accessibleName = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
85
string automationId = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree();
88
string frameworkId = ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_FrameworkIdPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (4)
31
Assert.Equal(accessibilityObject.Name, ((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
32
Assert.Empty(((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AccessKeyPropertyId)).ToStringAndFree());
37
Assert.Equal("1", ((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree());
38
Assert.Empty(((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (4)
93
Assert.Equal(expectedAccessibleName, ((
BSTR
)actual).ToStringAndFree());
109
string actual = ((
BSTR
)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
124
string actual = ((
BSTR
)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree();
138
string actual = ((
BSTR
)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
26
Assert.Equal("Test Name", ((
BSTR
)accessibleName).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarButtonAccessibleObjectTests.cs (1)
45
Assert.Equal(SR.AccessibleActionClick, ((
BSTR
)buttonAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
86
Assert.Equal(dt.ToLongDateString(), ((
BSTR
)monthCalendar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
36
string value = ((
BSTR
)accessibleObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (1)
56
Assert.Equal("TestActionDescription", ((
BSTR
)radioButtonAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (1)
89
string value = ((
BSTR
)accessibleObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (1)
26
Assert.Equal("Test Name", ((
BSTR
)accessibleName).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (3)
611
Assert.Equal(accessibleDefaultActionDescription, ((
BSTR
)actual).ToStringAndFree());
723
Assert.Equal(expectedKeyboardShortcut, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AccessKeyPropertyId)).ToStringAndFree());
765
string actual = ((
BSTR
)tabControl.AccessibilityObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (2)
479
Assert.Equal(expectedKeyboardShortcut, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AccessKeyPropertyId)).ToStringAndFree());
494
string actual = ((
BSTR
)tabPage.AccessibilityObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (2)
102
string actual = ((
BSTR
)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree();
131
string helpText = ((
BSTR
)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
36
Assert.Equal("Test Name", ((
BSTR
)accessibleName).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\ToolStripContainer.ToolStripContainerAccessibleObjectTests.cs (1)
34
string value = ((
BSTR
)accessibleObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (2)
101
Assert.Equal(string.Empty, ((
BSTR
)result).ToString());
109
Assert.Equal("Test Name", ((
BSTR
)accessibleName).ToString());
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxAccessibleObjectTests.cs (1)
24
Assert.Equal("Test Name", ((
BSTR
)accessibleName).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
337
Assert.Equal(defaultAction, ((
BSTR
)actual).ToStringAndFree());
438
string value = ((
BSTR
)accessibilityObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (5)
30
Assert.Equal(accessibilityObject.Name, ((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
31
Assert.Empty(((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AccessKeyPropertyId)).ToStringAndFree());
36
Assert.Equal(((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree(), ((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree());
37
Assert.Empty(((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (1)
92
string actual = ((
BSTR
)upDownButtons.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\WebBrowser.WebBrowserAccessibleObjectTests.cs (1)
35
string value = ((
BSTR
)accessibleObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree();
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (4)
165
Assert.Equal(SR.ComboBoxEditDefaultAccessibleName, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
166
Assert.Equal(SR.ComboBoxEditDefaultAccessibleName, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
171
Assert.Equal(comboBox.AccessibleName, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
172
Assert.Equal(comboBox.AccessibleName, ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree());
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (9)
307
HRESULT IAccessible.Interface.get_accName(VARIANT varChild,
BSTR
* pszName) => HRESULT.E_NOTIMPL;
308
HRESULT IAccessible.Interface.get_accValue(VARIANT varChild,
BSTR
* pszValue) => HRESULT.E_NOTIMPL;
309
HRESULT IAccessible.Interface.get_accDescription(VARIANT varChild,
BSTR
* pszDescription) => HRESULT.E_NOTIMPL;
312
HRESULT IAccessible.Interface.get_accHelp(VARIANT varChild,
BSTR
* pszHelp) => HRESULT.E_NOTIMPL;
313
HRESULT IAccessible.Interface.get_accHelpTopic(
BSTR
* pszHelpFile, VARIANT varChild, int* pidTopic) => HRESULT.E_NOTIMPL;
314
HRESULT IAccessible.Interface.get_accKeyboardShortcut(VARIANT varChild,
BSTR
* pszKeyboardShortcut) => HRESULT.E_NOTIMPL;
316
HRESULT IAccessible.Interface.get_accDefaultAction(VARIANT varChild,
BSTR
* pszDefaultAction) => HRESULT.E_NOTIMPL;
322
HRESULT IAccessible.Interface.put_accName(VARIANT varChild,
BSTR
szName) => HRESULT.E_NOTIMPL;
323
HRESULT IAccessible.Interface.put_accValue(VARIANT varChild,
BSTR
szValue) => HRESULT.E_NOTIMPL;
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (1)
24
using
BSTR
name = iFont.Value->Name;
System\Windows\Forms\HtmlDocumentTests.cs (24)
456
using
BSTR
cookie = default;
463
using
BSTR
cookie2 = default;
514
using
BSTR
charSet = new("UTF-8");
619
using
BSTR
charSet = new("UTF-8");
645
BSTR
charset = default;
652
BSTR
charset2 = default;
1119
using
BSTR
bstrRtl = new(rtl);
1144
using
BSTR
dir = default;
1151
using
BSTR
dir2 = default;
1158
using
BSTR
dir3 = default;
1208
using
BSTR
bstrTitle = new(title);
1232
using
BSTR
title = default;
1239
using
BSTR
title2 = default;
1490
using
BSTR
name = new(eventName);
2019
using
BSTR
onClick = new("onclick");
2057
using
BSTR
onContextMenu = new("oncontextmenu");
2095
using
BSTR
onFocusing = new("onfocusin");
2133
using
BSTR
onFocusOut = new("onfocusout");
2171
using
BSTR
onMouseDown = new("onmousedown");
2209
using
BSTR
onMouseOut = new("onmouseout");
2247
using
BSTR
onMouseMove = new("onmousemove");
2285
using
BSTR
onMouseOver = new("onmouseover");
2323
using
BSTR
onMouseUp = new("onmouseup");
2361
using
BSTR
onStop = new("onstop");
System\Windows\Forms\HtmlElementTests.cs (43)
354
using
BSTR
bstrId = new(id);
381
using
BSTR
id = default;
388
using
BSTR
id2 = default;
444
using
BSTR
innerHtml = new(value);
472
using
BSTR
innerHtml = default;
479
using
BSTR
innerHtml2 = default;
565
using
BSTR
innerHtml = new(value);
593
using
BSTR
innerText = default;
600
using
BSTR
innerText2 = default;
683
using
BSTR
name = new("name");
709
using
BSTR
name = new("name");
866
using
BSTR
innerHtml = new(value);
899
using
BSTR
outerHTML = default;
906
using
BSTR
outerHTML2 = default;
977
using
BSTR
innerHtml = new(value);
1005
using
BSTR
outerText = default;
1012
using
BSTR
outerText2 = default;
1290
using
BSTR
bstrStyle = new(style);
1328
using
BSTR
cssText = default;
1600
using
BSTR
name = new(eventName);
1643
using
BSTR
name = new(eventName);
1683
using
BSTR
name = new(eventName);
1871
using
BSTR
id = new("id");
1874
using
BSTR
customAttribute = new("customAttribute");
2567
using
BSTR
onClick = new("onclick");
2608
using
BSTR
ondblclick = new("ondblclick");
2649
using
BSTR
onDrag = new("ondrag");
2690
using
BSTR
onDragEnd = new("ondragend");
2731
using
BSTR
onDragLeave = new("ondragleave");
2772
using
BSTR
onDragOver = new("ondragover");
2813
using
BSTR
onFocus = new("onfocus");
2854
using
BSTR
onFocusin = new("onfocusin");
2895
using
BSTR
onFocusOut = new("onfocusout");
2936
using
BSTR
onBlur = new("onblur");
2977
using
BSTR
onKeyDown = new("onkeydown");
3018
using
BSTR
onKeyPress = new("onkeypress");
3059
using
BSTR
onKeyUp = new("onkeyup");
3100
using
BSTR
onMouseDown = new("onmousedown");
3141
using
BSTR
onMouseEnter = new("onmouseenter");
3182
using
BSTR
onMouseLeave = new("onmouseleave");
3225
using
BSTR
onMouseMove = new("onmousemove");
3264
using
BSTR
onMouseOver = new("onmouseover");
3305
using
BSTR
onMouseUp = new("onmouseup");
System\Windows\Forms\HtmlToClrEventProxyTest.cs (3)
24
using
BSTR
onHtmlEvent = default;
30
using
BSTR
eventName = default;
36
using
BSTR
getEventName = default;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
50
((
BSTR
)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
165
Assert.Equal("WinForm", ((
BSTR
)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_FrameworkIdPropertyId)).ToStringAndFree());
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (1)
563
using
BSTR
name = default;
RichTextBoxTests.cs (1)
224
using
BSTR
text = default;