共用方式為


SetCacheRefreshPlanProperties 方法

設定快取重新整理計劃的屬性。

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

語法

'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCacheRefreshPlanProperties", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Sub SetCacheRefreshPlanProperties ( _
    CacheRefreshPlanID As String, _
    Description As String, _
    EventType As String, _
    MatchData As String, _
    Parameters As ParameterValue() _
)
'用途
Dim instance As ReportingService2010
Dim CacheRefreshPlanID As String
Dim Description As String
Dim EventType As String
Dim MatchData As String
Dim Parameters As ParameterValue()

instance.SetCacheRefreshPlanProperties(CacheRefreshPlanID, _
    Description, EventType, MatchData, _
    Parameters)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCacheRefreshPlanProperties", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public void SetCacheRefreshPlanProperties(
    string CacheRefreshPlanID,
    string Description,
    string EventType,
    string MatchData,
    ParameterValue[] Parameters
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCacheRefreshPlanProperties", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
void SetCacheRefreshPlanProperties(
    String^ CacheRefreshPlanID, 
    String^ Description, 
    String^ EventType, 
    String^ MatchData, 
    array<ParameterValue^>^ Parameters
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCacheRefreshPlanProperties", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member SetCacheRefreshPlanProperties : 
        CacheRefreshPlanID:string * 
        Description:string * 
        EventType:string * 
        MatchData:string * 
        Parameters:ParameterValue[] -> unit 
public function SetCacheRefreshPlanProperties(
    CacheRefreshPlanID : String, 
    Description : String, 
    EventType : String, 
    MatchData : String, 
    Parameters : ParameterValue[]
)

參數

  • Description
    型別:System. . :: . .String
    快取重新整理計劃的描述。如果這個參數設定為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) (Visual Basic 中則為 Nothing),則快取重新整理計劃的現有描述仍保持為不變。
  • EventType
    型別:System. . :: . .String
    觸發快取重新整理的事件類型。目前,有效值為 RefreshCache。如果參數設定為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) (Visual Basic 中則為 Nothing),則使用 RefreshCache 的預設值。
  • MatchData
    型別:System. . :: . .String
    與指定之 EventType 參數相關聯的資料。這必須是 ItemPath 中特屬項目的序列化 ScheduleDefinition,或共用排程的排程識別碼。
    只有在 EventType 設定為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) 時,這個參數才能設定為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) (Visual Basic 中則為 Nothing)。如果設定為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing),則現有資料保持為不變。
  • Parameters
    型別:array<ReportService2010. . :: . .ParameterValue> [] () [] []
    ParameterValue 物件的陣列,其中包含要為其建立快取重新整理計劃的參數清單。
    如果不打算變更任何參數時,這個參數可以設定為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) (Visual Basic 中則為 Nothing)。

備註

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

ReadPolicy AND UpdatePolicy

SharePoint Mode Required Permissions

EditListItems()()()() AND ViewListItems()()()()