9 instantiations of VARIANT
Microsoft.Private.Windows.Core (9)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
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 (8)
26
VARIANT variant =
new
() { vt = VT_BOOL };
893
=>
new
()
905
=>
new
()
918
=>
new
()
931
=>
new
()
940
=>
new
()
959
=>
new
()
975
=>
new
()
126 references to VARIANT
Microsoft.Private.Windows.Core (126)
Windows.Win32.DISPPARAMS.g.cs (1)
33
internal unsafe winmdroot.System.Variant.
VARIANT
* rgvarg;
Windows.Win32.IDispatch.g.cs (5)
128
/// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
129
internal unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams, winmdroot.System.Variant.
VARIANT
* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr)
167
public unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, global::System.Guid* riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, [Optional] winmdroot.System.Variant.
VARIANT
* pVarResult, [Optional] winmdroot.System.Com.EXCEPINFO* pExcepInfo, [Optional] uint* puArgErr)
169
return ((delegate *unmanaged [Stdcall]<IDispatch*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDispatch*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
205
internal delegate *unmanaged [Stdcall]<IDispatch*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_7;
Windows.Win32.IDispatchEx.g.cs (11)
96
/// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
97
internal unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams, winmdroot.System.Variant.
VARIANT
* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr)
109
public unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, global::System.Guid* riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, [Optional] winmdroot.System.Variant.
VARIANT
* pVarResult, [Optional] winmdroot.System.Com.EXCEPINFO* pExcepInfo, [Optional] uint* puArgErr)
111
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDispatchEx*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
129
/// <inheritdoc cref="InvokeEx(int, uint, ushort, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, winmdroot.System.Com.IServiceProvider*)"/>
130
internal unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, in winmdroot.System.Com.DISPPARAMS pdp, winmdroot.System.Variant.
VARIANT
* pvarRes, winmdroot.System.Com.EXCEPINFO* pei, winmdroot.System.Com.IServiceProvider* pspCaller)
139
public unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, winmdroot.System.Com.DISPPARAMS* pdp, [Optional] winmdroot.System.Variant.
VARIANT
* pvarRes, [Optional] winmdroot.System.Com.EXCEPINFO* pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller)
141
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,uint ,ushort ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,winmdroot.System.Com.IServiceProvider* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IDispatchEx*)Unsafe.AsPointer(ref this), id, lcid, wFlags, pdp, pvarRes, pei, pspCaller);
227
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_7;
231
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,uint ,ushort ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,winmdroot.System.Com.IServiceProvider* ,winmdroot.Foundation.HRESULT> InvokeEx_9;
257
unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, winmdroot.System.Com.DISPPARAMS* pdp, [Optional] winmdroot.System.Variant.
VARIANT
* pvarRes, [Optional] winmdroot.System.Com.EXCEPINFO* pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller);
Windows.Win32.IPictureDisp.g.cs (5)
97
/// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
98
internal unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams, winmdroot.System.Variant.
VARIANT
* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr)
110
public unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, global::System.Guid* riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, [Optional] winmdroot.System.Variant.
VARIANT
* pVarResult, [Optional] winmdroot.System.Com.EXCEPINFO* pExcepInfo, [Optional] uint* puArgErr)
112
return ((delegate *unmanaged [Stdcall]<IPictureDisp*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPictureDisp*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
148
internal delegate *unmanaged [Stdcall]<IPictureDisp*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_7;
Windows.Win32.IRecordInfo.g.cs (28)
166
/// <inheritdoc cref="GetField(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
167
internal unsafe winmdroot.Foundation.HRESULT GetField(void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField)
169
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
191
public unsafe winmdroot.Foundation.HRESULT GetField(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField)
193
return ((delegate *unmanaged [Stdcall]<IRecordInfo*,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IRecordInfo*)Unsafe.AsPointer(ref this), pvData, szFieldName, pvarField);
196
/// <inheritdoc cref="GetFieldNoCopy(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*, void**)"/>
197
internal unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField, out void* ppvDataCArray)
201
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
225
public unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField, void** ppvDataCArray)
227
return ((delegate *unmanaged [Stdcall]<IRecordInfo*,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IRecordInfo*)Unsafe.AsPointer(ref this), pvData, szFieldName, pvarField, ppvDataCArray);
230
/// <inheritdoc cref="PutField(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
231
internal unsafe winmdroot.Foundation.HRESULT PutField(uint wFlags, void* pvData, string szFieldName, in winmdroot.System.Variant.
VARIANT
pvarField)
233
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
258
public unsafe winmdroot.Foundation.HRESULT PutField(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField)
260
return ((delegate *unmanaged [Stdcall]<IRecordInfo*,uint ,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IRecordInfo*)Unsafe.AsPointer(ref this), wFlags, pvData, szFieldName, pvarField);
263
/// <inheritdoc cref="PutFieldNoCopy(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
264
internal unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(uint wFlags, void* pvData, string szFieldName, in winmdroot.System.Variant.
VARIANT
pvarField)
266
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
288
public unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField)
290
return ((delegate *unmanaged [Stdcall]<IRecordInfo*,uint ,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IRecordInfo*)Unsafe.AsPointer(ref this), wFlags, pvData, szFieldName, pvarField);
426
internal delegate *unmanaged [Stdcall]<IRecordInfo*,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT> GetField_11;
428
internal delegate *unmanaged [Stdcall]<IRecordInfo*,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,void** ,winmdroot.Foundation.HRESULT> GetFieldNoCopy_12;
430
internal delegate *unmanaged [Stdcall]<IRecordInfo*,uint ,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT> PutField_13;
432
internal delegate *unmanaged [Stdcall]<IRecordInfo*,uint ,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT> PutFieldNoCopy_14;
474
unsafe winmdroot.Foundation.HRESULT GetField(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField);
477
unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField, void** ppvDataCArray);
480
unsafe winmdroot.Foundation.HRESULT PutField(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField);
483
unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField);
Windows.Win32.ITypeInfo.g.cs (7)
243
/// <inheritdoc cref="Invoke(void*, int, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
244
internal unsafe winmdroot.Foundation.HRESULT Invoke(void* pvInstance, int memid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, ref winmdroot.System.Com.DISPPARAMS pDispParams, out winmdroot.System.Variant.
VARIANT
pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr)
250
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
285
public unsafe winmdroot.Foundation.HRESULT Invoke(void* pvInstance, int memid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, winmdroot.System.Variant.
VARIANT
* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr)
287
return ((delegate *unmanaged [Stdcall]<ITypeInfo*,void* ,int ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((ITypeInfo*)Unsafe.AsPointer(ref this), pvInstance, memid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
561
internal delegate *unmanaged [Stdcall]<ITypeInfo*,void* ,int ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_12;
616
unsafe winmdroot.Foundation.HRESULT Invoke(void* pvInstance, int memid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, winmdroot.System.Variant.
VARIANT
* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr);
Windows.Win32.PARAMDESCEX.g.cs (1)
33
internal winmdroot.System.Variant.
VARIANT
varDefaultValue;
Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (3)
97
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.Invoke(void*, int, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
98
internal static unsafe winmdroot.Foundation.HRESULT Invoke(this winmdroot.System.Com.ITypeInfo.Interface @this, void* pvInstance, int memid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, ref winmdroot.System.Com.DISPPARAMS pDispParams, out winmdroot.System.Variant.
VARIANT
pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr)
104
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
Windows.Win32.System_Ole_IDispatchEx_Extensions.g.cs (2)
33
/// <inheritdoc cref="winmdroot.System.Ole.IDispatchEx.Interface.InvokeEx(int, uint, ushort, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, winmdroot.System.Com.IServiceProvider*)"/>
34
internal static unsafe winmdroot.Foundation.HRESULT InvokeEx(this winmdroot.System.Ole.IDispatchEx.Interface @this, int id, uint lcid, ushort wFlags, in winmdroot.System.Com.DISPPARAMS pdp, winmdroot.System.Variant.
VARIANT
* pvarRes, winmdroot.System.Com.EXCEPINFO* pei, winmdroot.System.Com.IServiceProvider* pspCaller)
Windows.Win32.System_Ole_IRecordInfo_Extensions.g.cs (12)
43
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.GetField(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
44
internal static unsafe winmdroot.Foundation.HRESULT GetField(this winmdroot.System.Ole.IRecordInfo.Interface @this, void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField)
46
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
56
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.GetFieldNoCopy(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*, void**)"/>
57
internal static unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(this winmdroot.System.Ole.IRecordInfo.Interface @this, void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField, out void* ppvDataCArray)
61
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
72
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.PutField(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
73
internal static unsafe winmdroot.Foundation.HRESULT PutField(this winmdroot.System.Ole.IRecordInfo.Interface @this, uint wFlags, void* pvData, string szFieldName, in winmdroot.System.Variant.
VARIANT
pvarField)
75
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
85
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.PutFieldNoCopy(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
86
internal static unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(this winmdroot.System.Ole.IRecordInfo.Interface @this, uint wFlags, void* pvData, string szFieldName, in winmdroot.System.Variant.
VARIANT
pvarField)
88
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
Windows.Win32.VARDESC.g.cs (1)
54
internal unsafe winmdroot.System.Variant.
VARIANT
* lpvarValue;
Windows.Win32.VARIANT.g.cs (1)
149
internal unsafe winmdroot.System.Variant.
VARIANT
* pvarVal;
Windows\Win32\Foundation\HRESULT.cs (1)
88
/// Visual Basic 6 and VBA raise this when objects have been collected or <see cref="
VARIANT
"/> values
Windows\Win32\System\Com\IDispatch.cs (6)
17
VARIANT
* pVar,
25
VARIANT
* pVar,
76
internal
VARIANT
GetProperty(
83
internal
VARIANT
GetProperty(
87
VARIANT
variant = default;
92
public HRESULT SetPropertyValue(int dispatchId,
VARIANT
value, out string? errorText)
Windows\Win32\System\Com\SAFEARRAY.cs (1)
55
else if (hardwiredType == FADF_VARIANT && cbElements == sizeof(
VARIANT
))
Windows\Win32\System\Com\SafeArrayScope.cs (5)
172
using
VARIANT
result = GetElement<
VARIANT
>(i);
184
using
VARIANT
variant =
VARIANT
.FromObject(value);
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 (32)
18
public static
VARIANT
Empty { get; }
20
public static
VARIANT
True { get; } = CreateBoolVariant(value: true);
22
public static
VARIANT
False { get; } = CreateBoolVariant(value: false);
24
private static
VARIANT
CreateBoolVariant(bool value)
26
VARIANT
variant = new() { vt = VT_BOOL };
81
fixed (
VARIANT
* thisVariant = &this)
880
public static explicit operator bool(
VARIANT
value)
884
public static explicit operator
VARIANT
(bool value)
888
public static explicit operator short(
VARIANT
value)
892
public static explicit operator
VARIANT
(short value)
900
public static explicit operator int(
VARIANT
value)
904
public static explicit operator
VARIANT
(int value)
913
public static explicit operator uint(
VARIANT
value)
917
public static explicit operator
VARIANT
(uint value)
926
public static explicit operator BSTR(
VARIANT
value)
930
public static explicit operator
VARIANT
(string value)
939
public static explicit operator
VARIANT
(BSTR value)
947
public static explicit operator CY(
VARIANT
value)
950
public static explicit operator decimal(
VARIANT
value) => value.vt switch
958
public static explicit operator
VARIANT
(IUnknown* value)
966
public static explicit operator IUnknown*(
VARIANT
value)
970
public static explicit operator double(
VARIANT
value)
974
public static explicit operator
VARIANT
(double value)
985
/// Converts the given object to <see cref="
VARIANT
"/>.
987
public static
VARIANT
FromObject(object? value)
996
return (
VARIANT
)stringValue;
1000
return (
VARIANT
)boolValue;
1004
return (
VARIANT
)shortValue;
1008
return (
VARIANT
)intValue;
1012
return (
VARIANT
)uintValue;
1016
return (
VARIANT
)doubleValue;
1022
VARIANT
variant = default;
Windows\Win32\System\Variant\VARIANTVector.cs (4)
8
public
VARIANT
[] Variants;
18
var variants = new
VARIANT
[values.Length];
19
fixed (
VARIANT
* pVariants = variants)
32
foreach (
VARIANT
variant in Variants)