SafeIUnknown.ToObject<T> Method
Microsoft internal use only.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Function ToObject(Of T As Class) As T
public T ToObject<T>()
where T : class
public:
generic<typename T>
where T : ref class
T ToObject()
member ToObject : unit -> 'T when 'T : not struct
JScript does not support generic types or methods.
Type Parameters
- T
The type to try-cast the COM object to
Return Value
Type: T
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.