526 references to VarEnum
ComSvcConfig (10)
ComAdminInterfaces.cs (10)
110
[Out, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] out Object[] CLSIDS);
193
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] fileNames,
194
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] CLSIDS);
229
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] fileNames,
230
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] CLSIDS);
316
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] fileNames,
317
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] CLSIDS);
352
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] fileNames,
353
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] CLSIDS);
624
void PopulateByKey([In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)]
mscorlib (166)
system\reflection\mdimport.cs (2)
325
out UnmanagedType unmanagedType, out
VarEnum
safeArraySubType, out string safeArrayUserDefinedSubType,
336
safeArraySubType = (
VarEnum
)_safeArraySubType;
system\runtime\interopservices\attributes.cs (3)
557
VarEnum
safeArraySubType;
590
internal MarshalAsAttribute(UnmanagedType val,
VarEnum
safeArraySubType, RuntimeType safeArrayUserDefinedSubType, UnmanagedType arraySubType,
617
public
VarEnum
SafeArraySubType;
system\Runtime\InteropServices\ComEventsSink.cs (7)
136
private const
VarEnum
VT_BYREF_VARIANT =
VarEnum
.VT_BYREF |
VarEnum
.VT_VARIANT;
137
private const
VarEnum
VT_TYPEMASK = (
VarEnum
) 0x0fff;
138
private const
VarEnum
VT_BYREF_TYPEMASK = VT_TYPEMASK |
VarEnum
.VT_BYREF;
system\runtime\interopservices\itypelibconverter.cs (1)
145
[return : MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)]
system\runtime\interopservices\ucomitypeinfo.cs (1)
202
public
VarEnum
varkind;
system\Runtime\InteropServices\Variant.cs (125)
111
internal static bool IsPrimitiveType(
VarEnum
varEnum) {
118
case
VarEnum
.VT_I1:
119
case
VarEnum
.VT_I2:
120
case
VarEnum
.VT_I4:
121
case
VarEnum
.VT_I8:
122
case
VarEnum
.VT_UI1:
123
case
VarEnum
.VT_UI2:
124
case
VarEnum
.VT_UI4:
125
case
VarEnum
.VT_UI8:
126
case
VarEnum
.VT_INT:
127
case
VarEnum
.VT_UINT:
128
case
VarEnum
.VT_BOOL:
129
case
VarEnum
.VT_R4:
130
case
VarEnum
.VT_R8:
131
case
VarEnum
.VT_DECIMAL:
132
case
VarEnum
.VT_DATE:
133
case
VarEnum
.VT_BSTR:
146
VarEnum
vt = (
VarEnum
)(((int)this.VariantType) & ~((int)
VarEnum
.VT_BYREF));
149
if (vt ==
VarEnum
.VT_DISPATCH || vt ==
VarEnum
.VT_UNKNOWN || vt ==
VarEnum
.VT_BSTR) {
156
if (!AppContextSwitches.DoNotMarshalOutByrefSafeArrayOnInvoke && (vt &
VarEnum
.VT_ARRAY) != 0)
165
case
VarEnum
.VT_I1:
169
case
VarEnum
.VT_UI1:
173
case
VarEnum
.VT_I2:
177
case
VarEnum
.VT_UI2:
181
case
VarEnum
.VT_BOOL:
185
case
VarEnum
.VT_I4:
186
case
VarEnum
.VT_INT:
190
case
VarEnum
.VT_UI4:
191
case
VarEnum
.VT_UINT:
195
case
VarEnum
.VT_ERROR:
199
case
VarEnum
.VT_I8:
203
case
VarEnum
.VT_UI8:
207
case
VarEnum
.VT_R4:
211
case
VarEnum
.VT_R8:
215
case
VarEnum
.VT_DATE:
219
case
VarEnum
.VT_UNKNOWN:
223
case
VarEnum
.VT_DISPATCH:
227
case
VarEnum
.VT_BSTR:
231
case
VarEnum
.VT_CY:
235
case
VarEnum
.VT_DECIMAL:
239
case
VarEnum
.VT_VARIANT:
259
case
VarEnum
.VT_NULL: return DBNull.Value;
266
case
VarEnum
.VT_I1: return AsI1;
267
case
VarEnum
.VT_I2: return AsI2;
268
case
VarEnum
.VT_I4: return AsI4;
269
case
VarEnum
.VT_I8: return AsI8;
270
case
VarEnum
.VT_UI1: return AsUi1;
271
case
VarEnum
.VT_UI2: return AsUi2;
272
case
VarEnum
.VT_UI4: return AsUi4;
273
case
VarEnum
.VT_UI8: return AsUi8;
274
case
VarEnum
.VT_INT: return AsInt;
275
case
VarEnum
.VT_UINT: return AsUint;
276
case
VarEnum
.VT_BOOL: return AsBool;
277
case
VarEnum
.VT_ERROR: return AsError;
278
case
VarEnum
.VT_R4: return AsR4;
279
case
VarEnum
.VT_R8: return AsR8;
280
case
VarEnum
.VT_DECIMAL: return AsDecimal;
281
case
VarEnum
.VT_CY: return AsCy;
282
case
VarEnum
.VT_DATE: return AsDate;
283
case
VarEnum
.VT_BSTR: return AsBstr;
284
case
VarEnum
.VT_UNKNOWN: return AsUnknown;
285
case
VarEnum
.VT_DISPATCH: return AsDispatch;
317
VarEnum
vt = VariantType;
318
if ((vt &
VarEnum
.VT_BYREF) != 0) {
319
VariantType =
VarEnum
.VT_EMPTY;
321
((vt &
VarEnum
.VT_ARRAY) != 0) ||
322
((vt) ==
VarEnum
.VT_BSTR) ||
323
((vt) ==
VarEnum
.VT_UNKNOWN) ||
324
((vt) ==
VarEnum
.VT_DISPATCH) ||
325
((vt) ==
VarEnum
.VT_VARIANT) ||
326
((vt) ==
VarEnum
.VT_RECORD) ||
327
((vt) ==
VarEnum
.VT_VARIANT)
336
VariantType =
VarEnum
.VT_EMPTY;
340
public
VarEnum
VariantType {
342
return (
VarEnum
)_typeUnion._vt;
351
return _typeUnion._vt == ((ushort)
VarEnum
.VT_EMPTY);
357
return (_typeUnion._vt & ((ushort)
VarEnum
.VT_BYREF)) != 0;
364
VariantType =
VarEnum
.VT_NULL;
376
BCLDebug.Assert(VariantType ==
VarEnum
.VT_I1, "variant");
381
VariantType =
VarEnum
.VT_I1;
390
BCLDebug.Assert(VariantType ==
VarEnum
.VT_I2, "variant");
395
VariantType =
VarEnum
.VT_I2;
404
BCLDebug.Assert(VariantType ==
VarEnum
.VT_I4, "variant");
409
VariantType =
VarEnum
.VT_I4;
418
BCLDebug.Assert(VariantType ==
VarEnum
.VT_I8, "variant");
423
VariantType =
VarEnum
.VT_I8;
432
BCLDebug.Assert(VariantType ==
VarEnum
.VT_UI1, "variant");
437
VariantType =
VarEnum
.VT_UI1;
446
BCLDebug.Assert(VariantType ==
VarEnum
.VT_UI2, "variant");
451
VariantType =
VarEnum
.VT_UI2;
460
BCLDebug.Assert(VariantType ==
VarEnum
.VT_UI4, "variant");
465
VariantType =
VarEnum
.VT_UI4;
474
BCLDebug.Assert(VariantType ==
VarEnum
.VT_UI8, "variant");
479
VariantType =
VarEnum
.VT_UI8;
488
BCLDebug.Assert(VariantType ==
VarEnum
.VT_INT, "variant");
493
VariantType =
VarEnum
.VT_INT;
502
BCLDebug.Assert(VariantType ==
VarEnum
.VT_UINT, "variant");
507
VariantType =
VarEnum
.VT_UINT;
516
BCLDebug.Assert(VariantType ==
VarEnum
.VT_BOOL, "variant");
521
VariantType =
VarEnum
.VT_BOOL;
530
BCLDebug.Assert(VariantType ==
VarEnum
.VT_ERROR, "variant");
535
VariantType =
VarEnum
.VT_ERROR;
544
BCLDebug.Assert(VariantType ==
VarEnum
.VT_R4, "variant");
549
VariantType =
VarEnum
.VT_R4;
558
BCLDebug.Assert(VariantType ==
VarEnum
.VT_R8, "variant");
563
VariantType =
VarEnum
.VT_R8;
572
BCLDebug.Assert(VariantType ==
VarEnum
.VT_DECIMAL, "variant");
580
VariantType =
VarEnum
.VT_DECIMAL;
583
_typeUnion._vt = (ushort)
VarEnum
.VT_DECIMAL;
591
BCLDebug.Assert(VariantType ==
VarEnum
.VT_CY, "variant");
596
VariantType =
VarEnum
.VT_CY;
605
BCLDebug.Assert(VariantType ==
VarEnum
.VT_DATE, "variant");
610
VariantType =
VarEnum
.VT_DATE;
619
BCLDebug.Assert(VariantType ==
VarEnum
.VT_BSTR, "variant");
624
VariantType =
VarEnum
.VT_BSTR;
633
BCLDebug.Assert(VariantType ==
VarEnum
.VT_UNKNOWN, "variant");
640
VariantType =
VarEnum
.VT_UNKNOWN;
652
BCLDebug.Assert(VariantType ==
VarEnum
.VT_DISPATCH, "variant");
659
VariantType =
VarEnum
.VT_DISPATCH;
673
BCLDebug.Assert(VariantType == (
VarEnum
.VT_BYREF |
VarEnum
.VT_VARIANT), "variant");
system\stubhelpers.cs (19)
1029
VarEnum
vt =
VarEnum
.VT_EMPTY;
1033
case TypeCode.SByte: vt =
VarEnum
.VT_I1; break;
1034
case TypeCode.Byte: vt =
VarEnum
.VT_UI1; break;
1035
case TypeCode.Int16: vt =
VarEnum
.VT_I2; break;
1036
case TypeCode.UInt16: vt =
VarEnum
.VT_UI2; break;
1037
case TypeCode.Int32: vt =
VarEnum
.VT_I4; break;
1038
case TypeCode.UInt32: vt =
VarEnum
.VT_UI4; break;
1039
case TypeCode.Int64: vt =
VarEnum
.VT_I8; break;
1040
case TypeCode.UInt64: vt =
VarEnum
.VT_UI8; break;
1041
case TypeCode.Single: vt =
VarEnum
.VT_R4; break;
1042
case TypeCode.Double: vt =
VarEnum
.VT_R8; break;
1043
case TypeCode.Char: vt = (IsAnsi(dwFlags) ? (
VarEnum
)VTHACK_ANSICHAR :
VarEnum
.VT_UI2); break;
1044
case TypeCode.Boolean: vt = (
VarEnum
)VTHACK_WINBOOL; break;
1050
vt = (IntPtr.Size == 4 ?
VarEnum
.VT_I4 :
VarEnum
.VT_I8);
1054
vt = (IntPtr.Size == 4 ?
VarEnum
.VT_UI4 :
VarEnum
.VT_UI8);
system\variant.cs (8)
272
VarEnum
vt =
VarEnum
.VT_EMPTY;
315
vt =
VarEnum
.VT_UNKNOWN;
320
vt =
VarEnum
.VT_DISPATCH;
325
vt =
VarEnum
.VT_ERROR;
331
vt =
VarEnum
.VT_CY;
337
vt =
VarEnum
.VT_BSTR;
347
if (vt !=
VarEnum
.VT_EMPTY)
PresentationCore (237)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (104)
61
VarEnum
interopTypeInfo;
66
interopTypeInfo =
VarEnum
.VT_I4;
70
interopTypeInfo =
VarEnum
.VT_I4;
81
interopTypeInfo = (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI1);
91
internal static void EncodeAttribute(Guid guid, object value,
VarEnum
type, Stream stream)
112
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I1)://8208
118
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI1)://8209
124
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I2)://8194
131
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI2)://8210
138
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I4)://8195
145
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI4)://8211
152
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I8)://8212
159
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI8)://8213
166
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_R4 )://8196
173
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_R8)://8197
180
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DATE)://8199
187
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_BOOL )://8203
207
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DECIMAL)://8206
214
case (
VarEnum
.VT_I1)://16
220
case (
VarEnum
.VT_UI1)://17
226
case (
VarEnum
.VT_I2)://2
232
case (
VarEnum
.VT_UI2)://18
238
case (
VarEnum
.VT_I4)://3
244
case (
VarEnum
.VT_UI4)://19
250
case (
VarEnum
.VT_I8)://20
256
case (
VarEnum
.VT_UI8)://21
262
case (
VarEnum
.VT_R4 )://4
268
case (
VarEnum
.VT_R8)://5
274
case (
VarEnum
.VT_DATE)://7
280
case (
VarEnum
.VT_BOOL )://11
297
case (
VarEnum
.VT_DECIMAL)://14
303
case (
VarEnum
.VT_BSTR)://8
547
VarEnum
type;
563
internal static object DecodeAttribute(Guid guid, Stream memStream, out
VarEnum
type)
579
type = (
VarEnum
)br.ReadUInt16();
584
type = (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI1);
588
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I1):
590
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI1):
605
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I2):
613
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI2):
621
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I4):
629
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI4):
637
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I8):
645
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI8):
653
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_R4):
661
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_R8):
669
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DATE):
679
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_BOOL):
687
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DECIMAL):
695
case (
VarEnum
.VT_I1):
697
case (
VarEnum
.VT_UI1):
699
case (
VarEnum
.VT_I2):
701
case (
VarEnum
.VT_UI2):
703
case (
VarEnum
.VT_I4):
705
case (
VarEnum
.VT_UI4):
707
case (
VarEnum
.VT_I8):
709
case (
VarEnum
.VT_UI8):
711
case (
VarEnum
.VT_R4):
713
case (
VarEnum
.VT_R8):
715
case (
VarEnum
.VT_DATE):
717
case (
VarEnum
.VT_BOOL):
719
case (
VarEnum
.VT_DECIMAL):
721
case (
VarEnum
.VT_BSTR):
950
VarEnum
varEnum = SerializationHelper.ConvertToVarEnum(value.GetType(), true);
955
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I1)://8208
956
case (
VarEnum
.VT_I1)://16
957
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DATE)://8199
958
case (
VarEnum
.VT_DATE)://7
973
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I1)://8208
978
case (
VarEnum
.VT_I1)://16
983
case (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DATE)://8199
990
case (
VarEnum
.VT_DATE)://7
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
661
System.Runtime.InteropServices.
VarEnum
type = SerializationHelper.ConvertToVarEnum(PersistenceTypes.StylusTip, true);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (42)
211
public static
VarEnum
ConvertToVarEnum(Type type, bool throwOnError)
215
return
VarEnum
.VT_I1;
219
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I1);
223
return
VarEnum
.VT_UI1;
227
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI1);
231
return
VarEnum
.VT_I2;
235
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I2);
239
return
VarEnum
.VT_UI2;
243
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI2);
247
return
VarEnum
.VT_I4;
251
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I4);
255
return
VarEnum
.VT_UI4;
259
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI4);
263
return
VarEnum
.VT_I8;
267
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_I8);
271
return
VarEnum
.VT_UI8;
275
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_UI8);
279
return
VarEnum
.VT_R4;
283
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_R4);
287
return
VarEnum
.VT_R8;
291
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_R8);
295
return
VarEnum
.VT_DATE;
299
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DATE);
303
return
VarEnum
.VT_BOOL;
307
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_BOOL);
311
return
VarEnum
.VT_BSTR;
315
return
VarEnum
.VT_DECIMAL;
319
return (
VarEnum
.VT_ARRAY |
VarEnum
.VT_DECIMAL);
329
return
VarEnum
.VT_UNKNOWN;
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (1)
1494
propVar.varType = (ushort)
VarEnum
.VT_FILETIME;
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (89)
150
internal void InitVector(Array array, Type type,
VarEnum
varEnum)
152
Init(array, type, varEnum |
VarEnum
.VT_VECTOR);
160
internal void Init(Array array, Type type,
VarEnum
vt)
211
varType = (ushort) (fAscii ?
VarEnum
.VT_LPSTR :
VarEnum
.VT_LPWSTR);
212
varType |= (ushort)
VarEnum
.VT_VECTOR;
277
varType = (ushort)
VarEnum
.VT_EMPTY;
285
InitVector(value as Array, typeof(sbyte),
VarEnum
.VT_I1);
289
InitVector(value as Array, typeof(byte),
VarEnum
.VT_UI1);
293
varType = (ushort)
VarEnum
.VT_LPSTR;
311
InitVector(value as Array, typeof(short),
VarEnum
.VT_I2);
315
InitVector(value as Array, typeof(ushort),
VarEnum
.VT_UI2);
319
InitVector(value as Array, typeof(int),
VarEnum
.VT_I4);
323
InitVector(value as Array, typeof(uint),
VarEnum
.VT_UI4);
327
InitVector(value as Array, typeof(Int64),
VarEnum
.VT_I8);
331
InitVector(value as Array, typeof(UInt64),
VarEnum
.VT_UI8);
335
InitVector(value as Array, typeof(float),
VarEnum
.VT_R4);
339
InitVector(value as Array, typeof(double),
VarEnum
.VT_R8);
343
InitVector(value as Array, typeof(Guid),
VarEnum
.VT_CLSID);
359
InitVector(array, typeof(short),
VarEnum
.VT_BOOL);
372
varType = (ushort)
VarEnum
.VT_LPWSTR;
377
varType = (ushort)
VarEnum
.VT_I1;
382
varType = (ushort)
VarEnum
.VT_UI1;
387
varType = (ushort)
VarEnum
.VT_FILETIME;
392
varType = (ushort)
VarEnum
.VT_LPSTR;
397
varType = (ushort)
VarEnum
.VT_I2;
402
varType = (ushort)
VarEnum
.VT_UI2;
407
varType = (ushort)
VarEnum
.VT_I4;
412
varType = (ushort)
VarEnum
.VT_UI4;
417
varType = (ushort)
VarEnum
.VT_I8;
422
varType = (ushort)
VarEnum
.VT_UI8;
427
varType = (ushort)
VarEnum
.VT_R4;
432
varType = (ushort)
VarEnum
.VT_R8;
438
varType = (ushort)
VarEnum
.VT_CLSID;
444
varType = (ushort)
VarEnum
.VT_BOOL;
449
Init((value as BitmapMetadataBlob).InternalGetBlobValue(), typeof(byte),
VarEnum
.VT_BLOB);
469
varType = (ushort)
VarEnum
.VT_UNKNOWN;
486
VarEnum
vt = (
VarEnum
) varType;
488
if ((vt &
VarEnum
.VT_VECTOR) != 0 || vt ==
VarEnum
.VT_BLOB)
492
vt = vt & ~
VarEnum
.VT_VECTOR;
494
if (vt ==
VarEnum
.VT_UNKNOWN)
509
else if (vt ==
VarEnum
.VT_LPWSTR || vt ==
VarEnum
.VT_LPSTR)
527
else if (vt ==
VarEnum
.VT_LPWSTR ||
528
vt ==
VarEnum
.VT_LPSTR ||
529
vt ==
VarEnum
.VT_CLSID)
533
else if (vt ==
VarEnum
.VT_UNKNOWN)
539
vt =
VarEnum
.VT_EMPTY;
549
VarEnum
vt = (
VarEnum
) varType;
551
if ((vt &
VarEnum
.VT_VECTOR) != 0)
553
switch (vt & (~
VarEnum
.VT_VECTOR))
555
case
VarEnum
.VT_EMPTY:
558
case
VarEnum
.VT_I1:
566
case
VarEnum
.VT_UI1:
573
case
VarEnum
.VT_I2:
580
case
VarEnum
.VT_UI2:
588
case
VarEnum
.VT_I4:
595
case
VarEnum
.VT_UI4:
603
case
VarEnum
.VT_I8:
610
case
VarEnum
.VT_UI8:
618
case
VarEnum
.VT_R4:
625
case
VarEnum
.VT_R8:
632
case
VarEnum
.VT_BOOL:
640
case
VarEnum
.VT_CLSID:
652
case
VarEnum
.VT_LPSTR:
669
case
VarEnum
.VT_LPWSTR:
686
case
VarEnum
.VT_UNKNOWN:
695
case
VarEnum
.VT_EMPTY:
698
case
VarEnum
.VT_I1:
701
case
VarEnum
.VT_UI1:
704
case
VarEnum
.VT_I2:
707
case
VarEnum
.VT_UI2:
710
case
VarEnum
.VT_I4:
713
case
VarEnum
.VT_UI4:
716
case
VarEnum
.VT_I8:
719
case
VarEnum
.VT_UI8:
722
case
VarEnum
.VT_R4:
725
case
VarEnum
.VT_R8:
728
case
VarEnum
.VT_FILETIME:
731
case
VarEnum
.VT_BOOL:
734
case
VarEnum
.VT_CLSID:
739
case
VarEnum
.VT_LPSTR:
742
case
VarEnum
.VT_LPWSTR:
745
case
VarEnum
.VT_BLOB:
752
case
VarEnum
.VT_UNKNOWN:
817
return (varType == (ushort)
VarEnum
.VT_UNKNOWN);
System.Data (24)
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (24)
142
switch((
VarEnum
)vartype) {
143
case
VarEnum
.VT_EMPTY: return null;
144
case
VarEnum
.VT_NULL: return typeof(System.DBNull);
145
case
VarEnum
.VT_I2: return typeof(System.Int16);
146
case
VarEnum
.VT_I4: return typeof(System.Int32);
147
case
VarEnum
.VT_R4: return typeof(System.Single);
148
case
VarEnum
.VT_R8: return typeof(System.Double);
149
case
VarEnum
.VT_CY: return typeof(System.Decimal);
150
case
VarEnum
.VT_DATE: return typeof(System.DateTime);
151
case
VarEnum
.VT_BSTR: return typeof(System.String);
152
case
VarEnum
.VT_DISPATCH: return typeof(System.Object);
153
case
VarEnum
.VT_ERROR: return typeof(System.Int32);
154
case
VarEnum
.VT_BOOL: return typeof(System.Boolean);
155
case
VarEnum
.VT_VARIANT: return typeof(System.Object);
156
case
VarEnum
.VT_UNKNOWN: return typeof(System.Object);
157
case
VarEnum
.VT_DECIMAL: return typeof(System.Decimal);
158
case
VarEnum
.VT_I1: return typeof(System.SByte);
159
case
VarEnum
.VT_UI1: return typeof(System.Byte);
160
case
VarEnum
.VT_UI2: return typeof(System.UInt16);
161
case
VarEnum
.VT_UI4: return typeof(System.UInt32);
162
case
VarEnum
.VT_I8: return typeof(System.Int64);
163
case
VarEnum
.VT_UI8: return typeof(System.UInt64);
164
case
VarEnum
.VT_INT: return typeof(System.Int32);
165
case
VarEnum
.VT_UINT: return typeof(System.UInt32);
System.Management (6)
InteropClasses\WMIInterop.cs (4)
617
[PreserveSig] int GetNames_([In][MarshalAs(UnmanagedType.LPWStr)] string wszQualifierName, [In] Int32 lFlags, [In] ref object pQualifierVal, [Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)] out string[] pNames);
648
[PreserveSig] int GetNames_([In] Int32 lFlags, [Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)] out string[] pNames);
670
[PreserveSig] int GetNames_([In] Int32 lFlags, [Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)] out string[] pNames);
809
[PreserveSig] int GetNames_([In][MarshalAs(UnmanagedType.LPWStr)] string wszQualifierName, [In] Int32 lFlags, [In] ref object pQualifierVal, [Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)] out string[] pNames);
managementscope.cs (2)
112
internal delegate int GetNames(int vFunc, IntPtr pWbemClassObject, [In][MarshalAs(UnmanagedType.LPWStr)] string wszQualifierName, [In] Int32 lFlags, [In] ref object pQualifierVal, [Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)] out string[] pNames);
135
internal delegate int QualifierSet_GetNames(int vFunc, IntPtr pWbemClassObject, [In] Int32 lFlags, [Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=
VarEnum
.VT_BSTR)] out string[] pNames);
System.ServiceModel (57)
System\ServiceModel\Administration\WbemNative.cs (3)
534
[Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_BSTR)] out string[] pNames
662
[Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_BSTR)] out string[] pNames
799
[Out][MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_BSTR)] out string[] pNames
System\ServiceModel\ComIntegration\AdminSDK.cs (5)
104
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] fileNames,
105
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] CLSIDS);
140
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] fileNames,
141
[In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] ref Object[] CLSIDS);
409
void PopulateByKey([In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)]
System\ServiceModel\ComIntegration\DispatchProxy.cs (7)
403
if ((varBase.vt & (ushort)(
VarEnum
.VT_VARIANT |
VarEnum
.VT_BYREF)) == 0)
407
if ((varActualVariant.vt & (ushort)(
VarEnum
.VT_VARIANT |
VarEnum
.VT_BYREF |
VarEnum
.VT_ARRAY)) == 0)
509
if ((var.vt & (ushort)
VarEnum
.VT_VARIANT) == 0)
537
if (0 != (vt & (ushort)(
VarEnum
.VT_BYREF)))
System\ServiceModel\ComIntegration\ProxyManager.cs (1)
168
variant.vt = (ushort)
VarEnum
.VT_DISPATCH;
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (41)
52
VarEnum
variantType = (
VarEnum
)bodyType;
62
case
VarEnum
.VT_LPSTR:
80
case
VarEnum
.VT_BSTR:
81
case
VarEnum
.VT_LPWSTR:
99
case
VarEnum
.VT_VECTOR |
VarEnum
.VT_UI1:
106
case
VarEnum
.VT_BOOL:
115
case
VarEnum
.VT_CLSID:
124
case
VarEnum
.VT_CY:
134
case
VarEnum
.VT_DATE:
144
case
VarEnum
.VT_I1:
145
case
VarEnum
.VT_UI1:
155
case
VarEnum
.VT_I2:
164
case
VarEnum
.VT_UI2:
173
case
VarEnum
.VT_I4:
182
case
VarEnum
.VT_UI4:
191
case
VarEnum
.VT_I8:
200
case
VarEnum
.VT_UI8:
209
case
VarEnum
.VT_R4:
218
case
VarEnum
.VT_R8:
227
case
VarEnum
.VT_NULL:
242
VarEnum
variantType;
261
variantType =
VarEnum
.VT_LPWSTR;
267
variantType =
VarEnum
.VT_UI1 |
VarEnum
.VT_VECTOR;
288
variantType =
VarEnum
.VT_LPWSTR;
293
variantType =
VarEnum
.VT_UI1;
301
variantType =
VarEnum
.VT_BOOL;
307
variantType =
VarEnum
.VT_UI2;
313
variantType =
VarEnum
.VT_CY;
319
variantType =
VarEnum
.VT_DATE;
325
variantType =
VarEnum
.VT_R8;
331
variantType =
VarEnum
.VT_CLSID;
337
variantType =
VarEnum
.VT_I2;
343
variantType =
VarEnum
.VT_UI2;
349
variantType =
VarEnum
.VT_I4;
356
variantType =
VarEnum
.VT_UI4;
363
variantType =
VarEnum
.VT_I8;
370
variantType =
VarEnum
.VT_UI8;
377
variantType =
VarEnum
.VT_R4;
System.Web (2)
Configuration\IISVersionHelper.cs (1)
30
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)]
Hosting\ProcessHost.cs (1)
263
[Out, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_BSTR)] out string[] parametersForStartupObj);
System.Windows.Forms (7)
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (7)
8412
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
8543
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_I4)]
8757
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
8848
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
8851
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
8866
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
8869
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
UIAutomationClient (12)
MS\Internal\Automation\UiaCoreAPI.cs (12)
341
[MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] object[,] pRequestedData,
1241
private static extern int RawUiaNavigate(SafeNodeHandle hnode, NavigateDirection direction, SafeConditionMemoryHandle condition, UiaMiniCacheRequest pRequest, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] out object[,] requestedData, [MarshalAs(UnmanagedType.BStr)] out string treeStructure);
1244
private static extern int RawUiaFind(SafeNodeHandle hnode, ref UiaFindParams pParams, UiaMiniCacheRequest pRequest, [MarshalAs(UnmanagedType.SafeArray)] out object[,] requestedData, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_I4)] out int[] offsets, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_BSTR)] out string[] treeStructures);
1256
private static extern int RawUiaNodeFromPoint(double x, double y, UiaMiniCacheRequest request, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] out object[,] requestedData, [MarshalAs(UnmanagedType.BStr)] out string treeStructure);
1259
private static extern int RawUiaNodeFromFocus(UiaMiniCacheRequest pRequest, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] out object[,] requestedData, [MarshalAs(UnmanagedType.BStr)] out string treeStructure);
1262
private static extern int RawUiaGetUpdatedCache(SafeNodeHandle hnode, UiaMiniCacheRequest pRequest, NormalizeState normalizeState, SafeConditionMemoryHandle pNormalizeCondition, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)] out object[,] requestedData, [MarshalAs(UnmanagedType.BStr)] out string treeStructure);
1388
private static extern int RawTextPattern_GetSelection(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)]out object[] result);
1391
private static extern int RawTextPattern_GetVisibleRanges(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_VARIANT)]out object[] result);
1427
private static extern int RawTextRange_GetBoundingRectangles(SafeTextRangeHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_R8)] out double[] result);
1457
private static extern int RawTextRange_GetChildren(SafeTextRangeHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)] out object[] result);
1545
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType =
VarEnum
.VT_UNKNOWN)]
WindowsBase (5)
Base\MS\Internal\Interop\NativeStructs.cs (5)
62
public
VarEnum
VarType
65
get { return (
VarEnum
)vt; }
76
if (vt == (ushort)
VarEnum
.VT_LPWSTR)
92
vt = (ushort)
VarEnum
.VT_BOOL;
104
vt = (ushort)
VarEnum
.VT_LPWSTR;