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.
Set the cached object associated with the name
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Sub SetCacheValue(Of T As {Class, New}) ( _
name As String, _
cacheObject As T _
)
public void SetCacheValue<T>(
string name,
T cacheObject
)
where T : class, new()
public:
generic<typename T>
where T : ref class, gcnew()
void SetCacheValue(
String^ name,
T cacheObject
)
member SetCacheValue :
name:string *
cacheObject:'T -> unit 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: StringName of the cache
cacheObject
Type: Tcached object to be associated with the given name
.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.