IHostItem.GetHostObject<T> Method (2007 System)
This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)
Syntax
'Declaration
Function GetHostObject(Of T As Class) As T
'Usage
Dim instance As IHostItem
Dim returnValue As T
returnValue = instance.GetHostObject()
T GetHostObject<T>()
where T : class
generic<typename T>
where T : ref class
T GetHostObject()
JScript does not support generic types or methods.
Type Parameters
- T
Return Value
Type: T