1 type derived from ObjectReference
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
221
internal class ObjectReferenceWithContext<T> :
ObjectReference
<T>
2 instantiations of ObjectReference
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (2)
160
var obj = new
ObjectReference
<T>(thisPtr);
188
var obj = new
ObjectReference
<T>(thisPtr, vftblIUnknown, vftblT);
161 references to ObjectReference
PresentationFramework (161)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (32)
78
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
296
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
403
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
521
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
524
protected readonly
ObjectReference
<Vftbl> _obj;
527
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
530
public IAlternateWordForm(
ObjectReference
<Vftbl> obj)
962
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
965
protected readonly
ObjectReference
<Vftbl> _obj;
968
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
971
public IUnicodeCharactersStatics(
ObjectReference
<Vftbl> obj)
1205
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
1208
protected readonly
ObjectReference
<Vftbl> _obj;
1211
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
1214
public IWordSegment(
ObjectReference
<Vftbl> obj)
1373
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
1376
protected readonly
ObjectReference
<Vftbl> _obj;
1379
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
1382
public IWordsSegmenter(
ObjectReference
<Vftbl> obj)
1507
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
1510
protected readonly
ObjectReference
<Vftbl> _obj;
1513
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
1516
public IWordsSegmenterFactory(
ObjectReference
<Vftbl> obj)
1590
var
abiDelegate =
ObjectReference
<IDelegateVftbl>.FromAbi(nativeDelegate);
1597
private readonly
ObjectReference
<global::WinRT.Interop.IDelegateVftbl> _nativeDelegate;
1599
public NativeDelegateWrapper(
ObjectReference
<global::WinRT.Interop.IDelegateVftbl> nativeDelegate)
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (31)
183
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
315
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
318
protected readonly
ObjectReference
<Vftbl> _obj;
321
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
324
public ILanguage(
ObjectReference
<Vftbl> obj)
442
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
445
protected readonly
ObjectReference
<Vftbl> _obj;
448
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
451
public ILanguage2(
ObjectReference
<Vftbl> obj)
516
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
519
protected readonly
ObjectReference
<Vftbl> _obj;
522
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
525
public ILanguageExtensionSubtags(
ObjectReference
<Vftbl> obj)
597
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
600
protected readonly
ObjectReference
<Vftbl> _obj;
603
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
606
public ILanguageFactory(
ObjectReference
<Vftbl> obj)
699
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
702
protected readonly
ObjectReference
<Vftbl> _obj;
705
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
708
public ILanguageStatics(
ObjectReference
<Vftbl> obj)
796
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
799
protected readonly
ObjectReference
<Vftbl> _obj;
802
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
805
public ILanguageStatics2(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (9)
149
public unsafe (
ObjectReference
<IActivationFactoryVftbl> obj, int hr) GetActivationFactory(string runtimeClassId)
154
return (hr == 0 ?
ObjectReference
<IActivationFactoryVftbl>.Attach(ref instancePtr) : null, hr);
205
public static unsafe (
ObjectReference
<IActivationFactoryVftbl> obj, int hr) GetActivationFactory(string runtimeClassId)
212
return (hr == 0 ?
ObjectReference
<IActivationFactoryVftbl>.Attach(ref instancePtr) : null, hr);
223
private
ObjectReference
<IActivationFactoryVftbl> _IActivationFactory;
253
public unsafe
ObjectReference
<I> _ActivateInstance<I>()
266
public
ObjectReference
<I> _As<I>() => _IActivationFactory.As<I>();
274
public static
ObjectReference
<I> As<I>() => _factory.Value._As<I>();
275
public static
ObjectReference
<I> ActivateInstance<I>() => _factory.Value._ActivateInstance<I>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (3)
85
using
var
unknownRef =
ObjectReference
<IUnknownVftbl>.FromAbi(externalComObject);
87
if (unknownRef.TryAs<IUnknownVftbl>(IID_IAgileObject, out
var
agileRef) >= 0)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (2)
36
return
ObjectReference
<IUnknownVftbl>.Attach(ref ccw);
107
if (objRef.TryAs<IInspectable.Vftbl>(out
var
inspectableRef) == 0)
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (6)
85
ObjectReference
<ABI.WinRT.Interop.IErrorInfo.Vftbl> iErrorInfo = null;
100
IObjectReference restrictedErrorInfoRef =
ObjectReference
<ABI.WinRT.Interop.IRestrictedErrorInfo.Vftbl>.Attach(ref restrictedErrorInfoPtr);
106
if (restrictedErrorInfoRef.TryAs<ABI.WinRT.Interop.ILanguageExceptionErrorInfo.Vftbl>(out
var
languageErrorInfoRef) >= 0)
209
using
var
restrictedErrorRef =
ObjectReference
<IUnknownVftbl>.Attach(ref ppRestrictedErrorInfo);
315
IObjectReference restrictedErrorInfoRef =
ObjectReference
<ABI.WinRT.Interop.IRestrictedErrorInfo.Vftbl>.Attach(ref restrictedErrorInfoPtr);
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (5)
88
new IInspectable(
ObjectReference
<Vftbl>.FromAbi(thisPtr));
90
private readonly
ObjectReference
<Vftbl> _obj;
93
public static implicit operator IInspectable(
ObjectReference
<Vftbl> obj) => new IInspectable(obj);
94
public
ObjectReference
<I> As<I>() => _obj.As<I>();
97
public IInspectable(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (27)
200
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
203
public static implicit operator IErrorInfo(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IErrorInfo(obj) : null;
204
protected readonly
ObjectReference
<Vftbl> _obj;
206
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
209
public IErrorInfo(
ObjectReference
<Vftbl> obj)
289
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
292
public static implicit operator ILanguageExceptionErrorInfo(
ObjectReference
<Vftbl> obj) => (obj != null) ? new ILanguageExceptionErrorInfo(obj) : null;
293
protected readonly
ObjectReference
<Vftbl> _obj;
295
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
298
public ILanguageExceptionErrorInfo(
ObjectReference
<Vftbl> obj)
310
return
ObjectReference
<global::WinRT.Interop.IUnknownVftbl>.Attach(ref __return_value__);
316
using
var
obj =
ObjectReference
<global::WinRT.Interop.IUnknownVftbl>.Attach(ref __return_value__);
360
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
363
public static implicit operator ISupportErrorInfo(
ObjectReference
<Vftbl> obj) => (obj != null) ? new ISupportErrorInfo(obj) : null;
364
protected readonly
ObjectReference
<Vftbl> _obj;
366
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
369
public ISupportErrorInfo(
ObjectReference
<Vftbl> obj)
394
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
397
public static implicit operator IRestrictedErrorInfo(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IRestrictedErrorInfo(obj) : null;
398
protected readonly
ObjectReference
<Vftbl> _obj;
400
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
403
public IRestrictedErrorInfo(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IContextCallback.cs (6)
55
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
58
public static implicit operator IContextCallback(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IContextCallback(obj) : null;
59
protected readonly
ObjectReference
<Vftbl> _obj;
61
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
64
public IContextCallback(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (4)
773
ObjectReference
<WinRT.Interop.IUnknownVftbl>.Attach(ref ptr).Dispose();
926
using
var
objRef =
ObjectReference
<IUnknownVftbl>.FromAbi(ptr);
927
using
var
unknownObjRef = objRef.As<IUnknownVftbl>();
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (17)
51
public
ObjectReference
<T> As<T>() => As<T>(GuidGenerator.GetIID(typeof(T)));
52
public
ObjectReference
<T> As<T>(Guid iid)
56
return
ObjectReference
<T>.Attach(ref thatPtr);
59
public int TryAs<T>(out
ObjectReference
<T> objRef) => TryAs<T>(GuidGenerator.GetIID(typeof(T)), out objRef);
61
public virtual unsafe int TryAs<T>(Guid iid, out
ObjectReference
<T> objRef)
68
objRef =
ObjectReference
<T>.Attach(ref thatPtr);
95
ObjectDisposedException.ThrowIf(disposed, typeof(
ObjectReference
<>));
141
using
var
unknownObjRef = As<IUnknownVftbl>();
154
public static
ObjectReference
<T> Attach(ref IntPtr thisPtr)
160
var
obj = new ObjectReference<T>(thisPtr);
182
public static
ObjectReference
<T> FromAbi(IntPtr thisPtr, IUnknownVftbl vftblIUnknown, T vftblT)
188
var
obj = new ObjectReference<T>(thisPtr, vftblIUnknown, vftblT);
193
public static
ObjectReference
<T> FromAbi(IntPtr thisPtr)
237
var contextCallback = new ABI.WinRT.Interop.IContextCallback(
ObjectReference
<ABI.WinRT.Interop.IContextCallback.Vftbl>.Attach(ref contextCallbackPtr));
246
public override int TryAs<U>(Guid iid, out
ObjectReference
<U> objRef)
253
using (
var
contextCallbackReference =
ObjectReference
<ABI.WinRT.Interop.IContextCallback.Vftbl>.FromAbi(_contextCallbackPtr))
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
201
if(objectReference.TryAs<IInspectable.Vftbl>(out
var
inspectablePtr) == 0)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (12)
141
public static
ObjectReference
<Vftbl> ObjRefFromAbi(IntPtr thisPtr)
148
return
ObjectReference
<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT);
153
public static implicit operator IEnumerable<T>(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IEnumerable<T>(obj) : null;
154
protected readonly
ObjectReference
<Vftbl> _obj;
158
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
161
public IEnumerable(
ObjectReference
<Vftbl> obj)
546
public static
ObjectReference
<Vftbl> ObjRefFromAbi(IntPtr thisPtr)
553
return
ObjectReference
<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT);
558
public static implicit operator IEnumerator<T>(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IEnumerator<T>(obj) : null;
559
protected readonly
ObjectReference
<Vftbl> _obj;
564
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
568
public IEnumerator(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (6)
338
public static
ObjectReference
<Vftbl> ObjRefFromAbi(IntPtr thisPtr)
345
return
ObjectReference
<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT);
350
public static implicit operator IReadOnlyList<T>(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IReadOnlyList<T>(obj) : null;
351
protected readonly
ObjectReference
<Vftbl> _obj;
355
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
358
public IReadOnlyList(
ObjectReference
<Vftbl> obj)