13 references to VarType
System.Private.Windows.Core (13)
Windows\Win32\System\Com\SafeArrayScope.cs (12)
41if (value->VarType is not VARENUM.VT_BSTR) 43throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 48if (value->VarType is not VARENUM.VT_I4 or VARENUM.VT_INT) 50throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 55if (value->VarType is not VARENUM.VT_R8) 57throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 62if (value->VarType is not VARENUM.VT_UNKNOWN) 64throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 73if (value->VarType is not VARENUM.VT_VARIANT) 75throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 183if (Value->VarType == VARENUM.VT_VARIANT) 250public 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)
630VARENUM arrayVarType = psa->VarType;