Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets the object that has the specified reference type and is associated with the specified key.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function GetValue(Of T As Class) ( _
key As Object _
) As T
T GetValue<T>(
Object key
)
where T : class
Type Parameters
- T
The type of the object to get. The type must be a reference type.
Parameters
key
Type: ObjectThe key of the object to get.
Return Value
Type: T
The object associated with the specified key, if the key is found and the object has the type T; otherwise, nulla null reference (Nothing in Visual Basic).
.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.