共用方式為


DocumentBase.GetHostItem<T> 方法

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

'宣告
Protected Function GetHostItem(Of T As Class) ( _
    type As Type, _
    cookie As String _
) As T
protected T GetHostItem<T>(
    Type type,
    string cookie
)
where T : class

型別參數

  • T

參數

傳回值

型別:T

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間