15 references to Type
System.Private.Windows.Core (3)
Windows\Win32\System\Variant\VARIANT.cs (3)
87if (data is null && !(Type == VT_EMPTY || Type == VT_NULL)) 109return ToObject(Type, Byref, data);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (1)
104if (hr.Succeeded && var.Type != VARENUM.VT_EMPTY)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
17=> ColorTranslator.FromOle(nativeValue.Type switch
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (3)
25if (nativeValue.Type != VARENUM.VT_UNKNOWN) 27Debug.Assert(nativeValue.IsEmpty, $"Expected IUnknown, got {nativeValue.Type}"); 82Debug.Assert(nativeValue.IsEmpty, $"Expected IUnknown, got {nativeValue.Type}");
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (1)
107if (hr.Succeeded && variant.Type != VARENUM.VT_EMPTY)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (2)
35if (nativeValue.Type != VARENUM.VT_UNKNOWN) 37Debug.Assert(nativeValue.IsEmpty, $"Expected IUnknown, got {nativeValue.Type}");
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (2)
647if (vColor.Type == VARENUM.VT_BSTR) 664else if (vColor.Type is VARENUM.VT_I4 or VARENUM.VT_INT)
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
543return attributeValue.Type == VARENUM.VT_NULL || attributeValue.ToObject() is not string validString
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
81Assert.Equal((VARENUM)expected, variant.Type);