共用方式為


Admin.EnableCaching 方法

保留給內部使用。啟動或停用快取的中介層。

命名空間:  WebSvcAdmin
組件:  ProjectServerServices (在 ProjectServerServices.dll 中)

語法

'宣告
<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 _
)
'用途
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
)

參數

  • cacheType
    類型:WebSvcAdmin.CacheType

    在 Project Server 中可用的唯一值是Database常數 (值 = 0)。

  • enable
    類型:System.Boolean

    若要啟用快取 ; True若要停用快取false 。

請參閱

參照

Admin 類別

Admin 成員

WebSvcAdmin 命名空間