SetScheduleProperties 方法
設定共用排程的屬性。
命名空間: ReportService2010
組件: ReportService2010 (在 ReportService2010.dll 中)
語法
'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetScheduleProperties", 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 SetScheduleProperties ( _
Name As String, _
ScheduleID As String, _
ScheduleDefinition As ScheduleDefinition _
)
'用途
Dim instance As ReportingService2010
Dim Name As String
Dim ScheduleID As String
Dim ScheduleDefinition As ScheduleDefinition
instance.SetScheduleProperties(Name, _
ScheduleID, ScheduleDefinition)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetScheduleProperties", 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 SetScheduleProperties(
string Name,
string ScheduleID,
ScheduleDefinition ScheduleDefinition
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetScheduleProperties", 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 SetScheduleProperties(
String^ Name,
String^ ScheduleID,
ScheduleDefinition^ ScheduleDefinition
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetScheduleProperties", 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 SetScheduleProperties :
Name:string *
ScheduleID:string *
ScheduleDefinition:ScheduleDefinition -> unit
public function SetScheduleProperties(
Name : String,
ScheduleID : String,
ScheduleDefinition : ScheduleDefinition
)
參數
- Name
型別:System. . :: . .String
排程的名稱。
- ScheduleID
型別:System. . :: . .String
排程的識別碼。
- ScheduleDefinition
型別:ReportService2010. . :: . .ScheduleDefinition
ScheduleDefinition 物件,定義要設定的排程屬性和值。
備註
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
UpdateSchedules (System) |
SharePoint Mode Required Permissions |
ManageWeb()()()() |
To remove a property from a shared schedule, set the property to null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) (Nothing in Visual Basic). Setting an empty value for a property that does not exist does not affect the schedule.
If you set the value of a property that already exists, the value is overwritten.
The SetScheduleProperties method does not stop execution of a scheduled operation when the method is invoked. If the schedule is updated during a scheduled run, changes are reflected in subsequent runs.
The MonthlyDOWRecurrence pattern is not supported in SharePoint integrated mode.