1 type derived from ObjectReference
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
220
internal class ObjectReferenceWithContext<T> :
ObjectReference
<T>
2 instantiations of ObjectReference
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (2)
159
var obj = new
ObjectReference
<T>(thisPtr);
187
var obj = new
ObjectReference
<T>(thisPtr, vftblIUnknown, vftblT);
161 references to ObjectReference
PresentationFramework (161)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (32)
79
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
297
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
404
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
522
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
525
protected readonly
ObjectReference
<Vftbl> _obj;
528
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
531
public IAlternateWordForm(
ObjectReference
<Vftbl> obj)
963
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
966
protected readonly
ObjectReference
<Vftbl> _obj;
969
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
972
public IUnicodeCharactersStatics(
ObjectReference
<Vftbl> obj)
1206
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
1209
protected readonly
ObjectReference
<Vftbl> _obj;
1212
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
1215
public IWordSegment(
ObjectReference
<Vftbl> obj)
1374
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
1377
protected readonly
ObjectReference
<Vftbl> _obj;
1380
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
1383
public IWordsSegmenter(
ObjectReference
<Vftbl> obj)
1508
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
1511
protected readonly
ObjectReference
<Vftbl> _obj;
1514
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
1517
public IWordsSegmenterFactory(
ObjectReference
<Vftbl> obj)
1591
var
abiDelegate =
ObjectReference
<IDelegateVftbl>.FromAbi(nativeDelegate);
1598
private readonly
ObjectReference
<global::WinRT.Interop.IDelegateVftbl> _nativeDelegate;
1600
public NativeDelegateWrapper(
ObjectReference
<global::WinRT.Interop.IDelegateVftbl> nativeDelegate)
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (31)
184
if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out
ObjectReference
<IUnknownVftbl> objRef) >= 0)
316
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
319
protected readonly
ObjectReference
<Vftbl> _obj;
322
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
325
public ILanguage(
ObjectReference
<Vftbl> obj)
443
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
446
protected readonly
ObjectReference
<Vftbl> _obj;
449
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
452
public ILanguage2(
ObjectReference
<Vftbl> obj)
517
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
520
protected readonly
ObjectReference
<Vftbl> _obj;
523
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
526
public ILanguageExtensionSubtags(
ObjectReference
<Vftbl> obj)
598
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
601
protected readonly
ObjectReference
<Vftbl> _obj;
604
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
607
public ILanguageFactory(
ObjectReference
<Vftbl> obj)
700
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
703
protected readonly
ObjectReference
<Vftbl> _obj;
706
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
709
public ILanguageStatics(
ObjectReference
<Vftbl> obj)
797
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
800
protected readonly
ObjectReference
<Vftbl> _obj;
803
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
806
public ILanguageStatics2(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (9)
151
public unsafe (
ObjectReference
<IActivationFactoryVftbl> obj, int hr) GetActivationFactory(string runtimeClassId)
156
return (hr == 0 ?
ObjectReference
<IActivationFactoryVftbl>.Attach(ref instancePtr) : null, hr);
207
public static unsafe (
ObjectReference
<IActivationFactoryVftbl> obj, int hr) GetActivationFactory(string runtimeClassId)
214
return (hr == 0 ?
ObjectReference
<IActivationFactoryVftbl>.Attach(ref instancePtr) : null, hr);
225
private
ObjectReference
<IActivationFactoryVftbl> _IActivationFactory;
255
public unsafe
ObjectReference
<I> _ActivateInstance<I>()
268
public
ObjectReference
<I> _As<I>() => _IActivationFactory.As<I>();
276
public static
ObjectReference
<I> As<I>() => _factory.Value._As<I>();
277
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)
54
public static
ObjectReference
<Vftbl> FromAbi(IntPtr thisPtr) =>
ObjectReference
<Vftbl>.FromAbi(thisPtr);
57
public static implicit operator IContextCallback(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IContextCallback(obj) : null;
58
protected readonly
ObjectReference
<Vftbl> _obj;
60
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
63
public IContextCallback(
ObjectReference
<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (4)
776
ObjectReference
<WinRT.Interop.IUnknownVftbl>.Attach(ref ptr).Dispose();
929
using
var
objRef =
ObjectReference
<IUnknownVftbl>.FromAbi(ptr);
930
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>();
153
public static
ObjectReference
<T> Attach(ref IntPtr thisPtr)
159
var
obj = new ObjectReference<T>(thisPtr);
181
public static
ObjectReference
<T> FromAbi(IntPtr thisPtr, IUnknownVftbl vftblIUnknown, T vftblT)
187
var
obj = new ObjectReference<T>(thisPtr, vftblIUnknown, vftblT);
192
public static
ObjectReference
<T> FromAbi(IntPtr thisPtr)
236
var contextCallback = new ABI.WinRT.Interop.IContextCallback(
ObjectReference
<ABI.WinRT.Interop.IContextCallback.Vftbl>.Attach(ref contextCallbackPtr));
245
public override int TryAs<U>(Guid iid, out
ObjectReference
<U> objRef)
252
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)
545
public static
ObjectReference
<Vftbl> ObjRefFromAbi(IntPtr thisPtr)
552
return
ObjectReference
<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT);
557
public static implicit operator IEnumerator<T>(
ObjectReference
<Vftbl> obj) => (obj != null) ? new IEnumerator<T>(obj) : null;
558
protected readonly
ObjectReference
<Vftbl> _obj;
563
public
ObjectReference
<I> AsInterface<I>() => _obj.As<I>();
567
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)