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