15 references to VarType
System.Private.Windows.Core (13)
Windows\Win32\System\Com\SafeArrayScope.cs (12)
40
if (value->
VarType
is not VARENUM.VT_BSTR)
42
throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->
VarType
}");
47
if (value->
VarType
is not VARENUM.VT_I4 and not VARENUM.VT_INT)
49
throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->
VarType
}");
54
if (value->
VarType
is not VARENUM.VT_R8)
56
throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->
VarType
}");
61
if (value->
VarType
is not VARENUM.VT_UNKNOWN)
63
throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->
VarType
}");
72
if (value->
VarType
is not VARENUM.VT_VARIANT)
74
throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->
VarType
}");
182
if (Value->
VarType
== VARENUM.VT_VARIANT)
249
public static explicit operator VARIANT(in SafeArrayScope<T> scope) => new() { vt = VARENUM.VT_ARRAY | scope.Value->
VarType
, data = new() { parray = (SAFEARRAY*)scope._value } };
Windows\Win32\System\Variant\VARIANT.cs (1)
627
VARENUM arrayVarType = psa->
VarType
;
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
337
|| result.data.parray->
VarType
is not VARENUM.VT_R8
Windows\Win32\System\Com\ComSafeArrayScope.cs (1)
25
if (value is not null && value->
VarType
!= VARENUM.VT_UNKNOWN)