1 type derived from ObjectReference
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
220internal class ObjectReferenceWithContext<T> : ObjectReference<T>
2 instantiations of ObjectReference
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (2)
159var obj = new ObjectReference<T>(thisPtr); 187var obj = new ObjectReference<T>(thisPtr, vftblIUnknown, vftblT);
161 references to ObjectReference
PresentationFramework (161)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (32)
79if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out ObjectReference<IUnknownVftbl> objRef) >= 0) 297if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out ObjectReference<IUnknownVftbl> objRef) >= 0) 404if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out ObjectReference<IUnknownVftbl> objRef) >= 0) 522public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 525protected readonly ObjectReference<Vftbl> _obj; 528public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 531public IAlternateWordForm(ObjectReference<Vftbl> obj) 963public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 966protected readonly ObjectReference<Vftbl> _obj; 969public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 972public IUnicodeCharactersStatics(ObjectReference<Vftbl> obj) 1206public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 1209protected readonly ObjectReference<Vftbl> _obj; 1212public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 1215public IWordSegment(ObjectReference<Vftbl> obj) 1374public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 1377protected readonly ObjectReference<Vftbl> _obj; 1380public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 1383public IWordsSegmenter(ObjectReference<Vftbl> obj) 1508public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 1511protected readonly ObjectReference<Vftbl> _obj; 1514public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 1517public IWordsSegmenterFactory(ObjectReference<Vftbl> obj) 1591var abiDelegate = ObjectReference<IDelegateVftbl>.FromAbi(nativeDelegate); 1598private readonly ObjectReference<global::WinRT.Interop.IDelegateVftbl> _nativeDelegate; 1600public NativeDelegateWrapper(ObjectReference<global::WinRT.Interop.IDelegateVftbl> nativeDelegate)
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (31)
184if (GetReferenceForQI().TryAs<IUnknownVftbl>(iid, out ObjectReference<IUnknownVftbl> objRef) >= 0) 316public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 319protected readonly ObjectReference<Vftbl> _obj; 322public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 325public ILanguage(ObjectReference<Vftbl> obj) 443public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 446protected readonly ObjectReference<Vftbl> _obj; 449public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 452public ILanguage2(ObjectReference<Vftbl> obj) 517public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 520protected readonly ObjectReference<Vftbl> _obj; 523public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 526public ILanguageExtensionSubtags(ObjectReference<Vftbl> obj) 598public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 601protected readonly ObjectReference<Vftbl> _obj; 604public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 607public ILanguageFactory(ObjectReference<Vftbl> obj) 700public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 703protected readonly ObjectReference<Vftbl> _obj; 706public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 709public ILanguageStatics(ObjectReference<Vftbl> obj) 797public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 800protected readonly ObjectReference<Vftbl> _obj; 803public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 806public ILanguageStatics2(ObjectReference<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (9)
151public unsafe (ObjectReference<IActivationFactoryVftbl> obj, int hr) GetActivationFactory(string runtimeClassId) 156return (hr == 0 ? ObjectReference<IActivationFactoryVftbl>.Attach(ref instancePtr) : null, hr); 207public static unsafe (ObjectReference<IActivationFactoryVftbl> obj, int hr) GetActivationFactory(string runtimeClassId) 214return (hr == 0 ? ObjectReference<IActivationFactoryVftbl>.Attach(ref instancePtr) : null, hr); 225private ObjectReference<IActivationFactoryVftbl> _IActivationFactory; 255public unsafe ObjectReference<I> _ActivateInstance<I>() 268public ObjectReference<I> _As<I>() => _IActivationFactory.As<I>(); 276public static ObjectReference<I> As<I>() => _factory.Value._As<I>(); 277public static ObjectReference<I> ActivateInstance<I>() => _factory.Value._ActivateInstance<I>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (3)
85using var unknownRef = ObjectReference<IUnknownVftbl>.FromAbi(externalComObject); 87if (unknownRef.TryAs<IUnknownVftbl>(IID_IAgileObject, out var agileRef) >= 0)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (2)
36return ObjectReference<IUnknownVftbl>.Attach(ref ccw); 107if (objRef.TryAs<IInspectable.Vftbl>(out var inspectableRef) == 0)
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (6)
85ObjectReference<ABI.WinRT.Interop.IErrorInfo.Vftbl> iErrorInfo = null; 100IObjectReference restrictedErrorInfoRef = ObjectReference<ABI.WinRT.Interop.IRestrictedErrorInfo.Vftbl>.Attach(ref restrictedErrorInfoPtr); 106if (restrictedErrorInfoRef.TryAs<ABI.WinRT.Interop.ILanguageExceptionErrorInfo.Vftbl>(out var languageErrorInfoRef) >= 0) 209using var restrictedErrorRef = ObjectReference<IUnknownVftbl>.Attach(ref ppRestrictedErrorInfo); 315IObjectReference restrictedErrorInfoRef = ObjectReference<ABI.WinRT.Interop.IRestrictedErrorInfo.Vftbl>.Attach(ref restrictedErrorInfoPtr);
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (5)
88new IInspectable(ObjectReference<Vftbl>.FromAbi(thisPtr)); 90private readonly ObjectReference<Vftbl> _obj; 93public static implicit operator IInspectable(ObjectReference<Vftbl> obj) => new IInspectable(obj); 94public ObjectReference<I> As<I>() => _obj.As<I>(); 97public IInspectable(ObjectReference<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (27)
200public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 203public static implicit operator IErrorInfo(ObjectReference<Vftbl> obj) => (obj != null) ? new IErrorInfo(obj) : null; 204protected readonly ObjectReference<Vftbl> _obj; 206public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 209public IErrorInfo(ObjectReference<Vftbl> obj) 289public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 292public static implicit operator ILanguageExceptionErrorInfo(ObjectReference<Vftbl> obj) => (obj != null) ? new ILanguageExceptionErrorInfo(obj) : null; 293protected readonly ObjectReference<Vftbl> _obj; 295public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 298public ILanguageExceptionErrorInfo(ObjectReference<Vftbl> obj) 310return ObjectReference<global::WinRT.Interop.IUnknownVftbl>.Attach(ref __return_value__); 316using var obj = ObjectReference<global::WinRT.Interop.IUnknownVftbl>.Attach(ref __return_value__); 360public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 363public static implicit operator ISupportErrorInfo(ObjectReference<Vftbl> obj) => (obj != null) ? new ISupportErrorInfo(obj) : null; 364protected readonly ObjectReference<Vftbl> _obj; 366public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 369public ISupportErrorInfo(ObjectReference<Vftbl> obj) 394public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 397public static implicit operator IRestrictedErrorInfo(ObjectReference<Vftbl> obj) => (obj != null) ? new IRestrictedErrorInfo(obj) : null; 398protected readonly ObjectReference<Vftbl> _obj; 400public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 403public IRestrictedErrorInfo(ObjectReference<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IContextCallback.cs (6)
54public static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr); 57public static implicit operator IContextCallback(ObjectReference<Vftbl> obj) => (obj != null) ? new IContextCallback(obj) : null; 58protected readonly ObjectReference<Vftbl> _obj; 60public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 63public IContextCallback(ObjectReference<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (4)
776ObjectReference<WinRT.Interop.IUnknownVftbl>.Attach(ref ptr).Dispose(); 929using var objRef = ObjectReference<IUnknownVftbl>.FromAbi(ptr); 930using var unknownObjRef = objRef.As<IUnknownVftbl>();
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (17)
51public ObjectReference<T> As<T>() => As<T>(GuidGenerator.GetIID(typeof(T))); 52public ObjectReference<T> As<T>(Guid iid) 56return ObjectReference<T>.Attach(ref thatPtr); 59public int TryAs<T>(out ObjectReference<T> objRef) => TryAs<T>(GuidGenerator.GetIID(typeof(T)), out objRef); 61public virtual unsafe int TryAs<T>(Guid iid, out ObjectReference<T> objRef) 68objRef = ObjectReference<T>.Attach(ref thatPtr); 95ObjectDisposedException.ThrowIf(disposed, typeof(ObjectReference<>)); 141using var unknownObjRef = As<IUnknownVftbl>(); 153public static ObjectReference<T> Attach(ref IntPtr thisPtr) 159var obj = new ObjectReference<T>(thisPtr); 181public static ObjectReference<T> FromAbi(IntPtr thisPtr, IUnknownVftbl vftblIUnknown, T vftblT) 187var obj = new ObjectReference<T>(thisPtr, vftblIUnknown, vftblT); 192public static ObjectReference<T> FromAbi(IntPtr thisPtr) 236var contextCallback = new ABI.WinRT.Interop.IContextCallback(ObjectReference<ABI.WinRT.Interop.IContextCallback.Vftbl>.Attach(ref contextCallbackPtr)); 245public override int TryAs<U>(Guid iid, out ObjectReference<U> objRef) 252using (var contextCallbackReference = ObjectReference<ABI.WinRT.Interop.IContextCallback.Vftbl>.FromAbi(_contextCallbackPtr))
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
201if(objectReference.TryAs<IInspectable.Vftbl>(out var inspectablePtr) == 0)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (12)
141public static ObjectReference<Vftbl> ObjRefFromAbi(IntPtr thisPtr) 148return ObjectReference<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT); 153public static implicit operator IEnumerable<T>(ObjectReference<Vftbl> obj) => (obj != null) ? new IEnumerable<T>(obj) : null; 154protected readonly ObjectReference<Vftbl> _obj; 158public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 161public IEnumerable(ObjectReference<Vftbl> obj) 545public static ObjectReference<Vftbl> ObjRefFromAbi(IntPtr thisPtr) 552return ObjectReference<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT); 557public static implicit operator IEnumerator<T>(ObjectReference<Vftbl> obj) => (obj != null) ? new IEnumerator<T>(obj) : null; 558protected readonly ObjectReference<Vftbl> _obj; 563public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 567public IEnumerator(ObjectReference<Vftbl> obj)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (6)
338public static ObjectReference<Vftbl> ObjRefFromAbi(IntPtr thisPtr) 345return ObjectReference<Vftbl>.FromAbi(thisPtr, vftblT.IInspectableVftbl.IUnknownVftbl, vftblT); 350public static implicit operator IReadOnlyList<T>(ObjectReference<Vftbl> obj) => (obj != null) ? new IReadOnlyList<T>(obj) : null; 351protected readonly ObjectReference<Vftbl> _obj; 355public ObjectReference<I> AsInterface<I>() => _obj.As<I>(); 358public IReadOnlyList(ObjectReference<Vftbl> obj)