停止網站
Microsoft.Windows.InternetInformationServices.6.2.WebSite.StopWebSite.Task (Task)
此工作將停止目標網站。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.StopWebSite.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebSite" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.6.2.AppCmd.WriteAction">
<Operation>stop site "$Target/Property[Type="System!System.Entity"]/DisplayName$"</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>