Share via


Admin.EnableCaching method

Reserved for internal use. Activates or deactivates caching in the middle tier.

Namespace:  WebSvcAdmin
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

Syntax

'Declaration
<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 _
)
'Usage
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
)

Parameters

  • cacheType
    Type: WebSvcAdmin.CacheType

    The only value available in Project Server is the Database constant (value = 0).

  • enable
    Type: System.Boolean

    True to enable caching; false to disable caching.

See also

Reference

Admin class

Admin members

WebSvcAdmin namespace