IAnnotationDictionary.GetValue<T> 方法 (Object)

取得具有指定參考型別且與指定索引鍵相關聯的物件。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
Function GetValue(Of T As Class) ( _
    key As Object _
) As T
T GetValue<T>(
    Object key
)
where T : class

型別參數

  • T
    要取得之物件的類型。該型別必須是參考型別。

參數

傳回值

型別:T
如果找到索引鍵且物件型別為 T,則為與指定索引鍵相關聯的物件,否則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

IAnnotationDictionary 介面

GetValue 多載

Microsoft.VisualStudio.SharePoint 命名空間