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 cache for the specified class.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Function GetCache(Of T As {Class, New}) ( _
name As String _
) As T
public T GetCache<T>(
string name
)
where T : class, new()
public:
generic<typename T>
where T : ref class, gcnew()
T GetCache(
String^ name
)
member GetCache :
name:string -> 'T when 'T : not struct, new()
JScript does not support generic types or methods.
Type Parameters
- T
A class with a parameterless constructor
Parameters
name
Type: StringThe name of the cache.
Return Value
Type: T
The cache for the specified class.
Remarks
When you provide the name for a cache, another cache is created, and it uses the specific name that you gave it. Therefore, you can have more than one cache for the same class.
.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.