9 instantiations of VARIANT
Microsoft.Private.Windows.Core (9)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
249public 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)
26VARIANT 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)
17VARIANT* pVar, 25VARIANT* pVar, 76internal VARIANT GetProperty( 83internal VARIANT GetProperty( 87VARIANT variant = default; 92public HRESULT SetPropertyValue(int dispatchId, VARIANT value, out string? errorText)
Windows\Win32\System\Com\SAFEARRAY.cs (1)
55else if (hardwiredType == FADF_VARIANT && cbElements == sizeof(VARIANT))
Windows\Win32\System\Com\SafeArrayScope.cs (5)
172using VARIANT result = GetElement<VARIANT>(i); 184using VARIANT variant = VARIANT.FromObject(value); 249public 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)
18public static VARIANT Empty { get; } 20public static VARIANT True { get; } = CreateBoolVariant(value: true); 22public static VARIANT False { get; } = CreateBoolVariant(value: false); 24private static VARIANT CreateBoolVariant(bool value) 26VARIANT variant = new() { vt = VT_BOOL }; 81fixed (VARIANT* thisVariant = &this) 880public static explicit operator bool(VARIANT value) 884public static explicit operator VARIANT(bool value) 888public static explicit operator short(VARIANT value) 892public static explicit operator VARIANT(short value) 900public static explicit operator int(VARIANT value) 904public static explicit operator VARIANT(int value) 913public static explicit operator uint(VARIANT value) 917public static explicit operator VARIANT(uint value) 926public static explicit operator BSTR(VARIANT value) 930public static explicit operator VARIANT(string value) 939public static explicit operator VARIANT(BSTR value) 947public static explicit operator CY(VARIANT value) 950public static explicit operator decimal(VARIANT value) => value.vt switch 958public static explicit operator VARIANT(IUnknown* value) 966public static explicit operator IUnknown*(VARIANT value) 970public static explicit operator double(VARIANT value) 974public static explicit operator VARIANT(double value) 985/// Converts the given object to <see cref="VARIANT"/>. 987public static VARIANT FromObject(object? value) 996return (VARIANT)stringValue; 1000return (VARIANT)boolValue; 1004return (VARIANT)shortValue; 1008return (VARIANT)intValue; 1012return (VARIANT)uintValue; 1016return (VARIANT)doubleValue; 1022VARIANT variant = default;
Windows\Win32\System\Variant\VARIANTVector.cs (4)
8public VARIANT[] Variants; 18var variants = new VARIANT[values.Length]; 19fixed (VARIANT* pVariants = variants) 32foreach (VARIANT variant in Variants)