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
()
141 references to VARIANT
Microsoft.Private.Windows.Core (141)
_generated\128\Windows.Win32.IDispatch.g.cs (8)
130
/// <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*)"/>
132
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, out winmdroot.System.Variant.
VARIANT
pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr)
138
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
153
/// <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*)"/>
160
winmdroot.Foundation.HRESULT __result = this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, default(winmdroot.System.Variant.
VARIANT
* ), default(winmdroot.System.Com.EXCEPINFO* ), default(uint* ));
192
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)
194
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);
232
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;
_generated\129\Windows.Win32.IDispatchEx.g.cs (17)
98
/// <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*)"/>
100
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, out winmdroot.System.Variant.
VARIANT
pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr)
106
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
121
/// <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*)"/>
128
winmdroot.Foundation.HRESULT __result = this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, default(winmdroot.System.Variant.
VARIANT
* ), default(winmdroot.System.Com.EXCEPINFO* ), default(uint* ));
134
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)
136
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);
155
/// <inheritdoc cref="InvokeEx(int, uint, ushort, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, winmdroot.System.Com.IServiceProvider*)"/>
157
internal unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, in winmdroot.System.Com.DISPPARAMS pdp, out winmdroot.System.Variant.
VARIANT
pvarRes, out winmdroot.System.Com.EXCEPINFO pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller)
161
fixed (winmdroot.System.Variant.
VARIANT
* pvarResLocal = &pvarRes)
172
/// <inheritdoc cref="InvokeEx(int, uint, ushort, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, winmdroot.System.Com.IServiceProvider*)"/>
177
winmdroot.Foundation.HRESULT __result = this.InvokeEx(id, lcid, wFlags, pdpLocal, default(winmdroot.System.Variant.
VARIANT
* ), default(winmdroot.System.Com.EXCEPINFO* ), pspCaller);
182
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)
184
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);
285
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;
289
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;
320
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);
_generated\154\Windows.Win32.IPictureDisp.g.cs (8)
99
/// <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*)"/>
101
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, out winmdroot.System.Variant.
VARIANT
pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr)
107
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
122
/// <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
winmdroot.Foundation.HRESULT __result = this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, default(winmdroot.System.Variant.
VARIANT
* ), default(winmdroot.System.Com.EXCEPINFO* ), default(uint* ));
135
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)
137
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);
175
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;
_generated\155\Windows.Win32.IRecordInfo.g.cs (28)
180
/// <inheritdoc cref="GetField(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
182
internal unsafe winmdroot.Foundation.HRESULT GetField(void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField)
184
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
206
public unsafe winmdroot.Foundation.HRESULT GetField(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField)
208
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);
211
/// <inheritdoc cref="GetFieldNoCopy(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*, void**)"/>
213
internal unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField, out void* ppvDataCArray)
217
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
241
public unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField, void** ppvDataCArray)
243
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);
246
/// <inheritdoc cref="PutField(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
248
internal unsafe winmdroot.Foundation.HRESULT PutField(uint wFlags, void* pvData, string szFieldName, in winmdroot.System.Variant.
VARIANT
pvarField)
250
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
275
public unsafe winmdroot.Foundation.HRESULT PutField(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField)
277
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);
280
/// <inheritdoc cref="PutFieldNoCopy(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
282
internal unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(uint wFlags, void* pvData, string szFieldName, in winmdroot.System.Variant.
VARIANT
pvarField)
284
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
306
public unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField)
308
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);
451
internal delegate *unmanaged [Stdcall]<IRecordInfo*,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT> GetField_11;
453
internal delegate *unmanaged [Stdcall]<IRecordInfo*,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,void** ,winmdroot.Foundation.HRESULT> GetFieldNoCopy_12;
455
internal delegate *unmanaged [Stdcall]<IRecordInfo*,uint ,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT> PutField_13;
457
internal delegate *unmanaged [Stdcall]<IRecordInfo*,uint ,void* ,winmdroot.Foundation.PCWSTR ,winmdroot.System.Variant.
VARIANT
* ,winmdroot.Foundation.HRESULT> PutFieldNoCopy_14;
504
unsafe winmdroot.Foundation.HRESULT GetField(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField);
507
unsafe winmdroot.Foundation.HRESULT GetFieldNoCopy(void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField, void** ppvDataCArray);
510
unsafe winmdroot.Foundation.HRESULT PutField(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField);
513
unsafe winmdroot.Foundation.HRESULT PutFieldNoCopy(uint wFlags, void* pvData, winmdroot.Foundation.PCWSTR szFieldName, winmdroot.System.Variant.
VARIANT
* pvarField);
_generated\162\Windows.Win32.ITypeInfo.g.cs (7)
252
/// <inheritdoc cref="Invoke(void*, int, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.
VARIANT
*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
254
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)
260
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
295
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)
297
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);
627
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;
687
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);
_generated\184\Windows.Win32.PARAMDESCEX.g.cs (1)
33
internal winmdroot.System.Variant.
VARIANT
varDefaultValue;
_generated\245\Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (3)
102
/// <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*)"/>
103
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)
109
fixed (winmdroot.System.Variant.
VARIANT
* pVarResultLocal = &pVarResult)
_generated\250\Windows.Win32.System_Ole_IDispatchEx_Extensions.g.cs (5)
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, out winmdroot.System.Variant.
VARIANT
pvarRes, out winmdroot.System.Com.EXCEPINFO pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller)
38
fixed (winmdroot.System.Variant.
VARIANT
* pvarResLocal = &pvarRes)
49
/// <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*)"/>
54
winmdroot.Foundation.HRESULT __result = @this.InvokeEx(id, lcid, wFlags, pdpLocal, default(winmdroot.System.Variant.
VARIANT
* ), default(winmdroot.System.Com.EXCEPINFO* ), pspCaller);
_generated\253\Windows.Win32.System_Ole_IRecordInfo_Extensions.g.cs (12)
53
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.GetField(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
54
internal static unsafe winmdroot.Foundation.HRESULT GetField(this winmdroot.System.Ole.IRecordInfo.Interface @this, void* pvData, string szFieldName, out winmdroot.System.Variant.
VARIANT
pvarField)
56
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
66
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.GetFieldNoCopy(void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*, void**)"/>
67
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)
71
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
82
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.PutField(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
83
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)
85
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
95
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.PutFieldNoCopy(uint, void*, winmdroot.Foundation.PCWSTR, winmdroot.System.Variant.
VARIANT
*)"/>
96
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)
98
fixed (winmdroot.System.Variant.
VARIANT
* pvarFieldLocal = &pvarField)
_generated\268\Windows.Win32.VARDESC.g.cs (1)
54
internal unsafe winmdroot.System.Variant.
VARIANT
* lpvarValue;
_generated\272\Windows.Win32.VARIANT.g.cs (1)
149
internal unsafe winmdroot.System.Variant.
VARIANT
* pvarVal;
_generated\56\Windows.Win32.DISPPARAMS.g.cs (1)
33
internal unsafe winmdroot.System.Variant.
VARIANT
* rgvarg;
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)