Admin.EnableCaching - Méthode
Réservé à une utilisation interne. Active ou désactive la mise en cache dans la couche intermédiaire.
Espace de noms : WebSvcAdmin
Assembly : ProjectServerServices (dans ProjectServerServices.dll)
Syntaxe
'Déclaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/EnableCaching", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub EnableCaching ( _
cacheType As CacheType, _
enable As Boolean _
)
'Utilisation
Dim instance As Admin
Dim cacheType As CacheType
Dim enable As Boolean
instance.EnableCaching(cacheType, enable)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/EnableCaching", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void EnableCaching(
CacheType cacheType,
bool enable
)
Paramètres
cacheType
Type : WebSvcAdmin.CacheTypeLa seule valeur disponible dans Project Server est la constante Database (valeur = 0).
enable
Type : System.BooleanTrue pour activer la mise en cache ; false pour désactiver la mise en cache.