WebSiteOperationsExtensions.UpdateConfigurationAsync 方法 (IWebSiteOperations, String, String, WebSiteUpdateConfigurationParameters)

 

可以通过包含更新的设置的请求正文中发出 HTTP PUT 来更新 web 站点的配置设置。 (请参阅 https://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx 有关详细信息)

命名空间:   Microsoft.WindowsAzure
程序集:  Microsoft.WindowsAzure.Management.WebSites(Microsoft.WindowsAzure.Management.WebSites.dll 中)

语法

public static Task<OperationResponse> UpdateConfigurationAsync(
    this IWebSiteOperations operations,
    string webSpaceName,
    string webSiteName,
    WebSiteUpdateConfigurationParameters parameters
)
public:
[ExtensionAttribute]
static Task<OperationResponse^>^ UpdateConfigurationAsync(
    IWebSiteOperations^ operations,
    String^ webSpaceName,
    String^ webSiteName,
    WebSiteUpdateConfigurationParameters^ parameters
)
static member UpdateConfigurationAsync : 
        operations:IWebSiteOperations *
        webSpaceName:string *
        webSiteName:string *
        parameters:WebSiteUpdateConfigurationParameters -> Task<OperationResponse>
<ExtensionAttribute>
Public Shared Function UpdateConfigurationAsync (
    operations As IWebSiteOperations,
    webSpaceName As String,
    webSiteName As String,
    parameters As WebSiteUpdateConfigurationParameters
) As Task(Of OperationResponse)

参数

  • webSpaceName
    Type: System.String

    必需。 Web 空间的名称。

返回值

Type: System.Threading.Tasks.Task<OperationResponse>

标准服务响应,包括 HTTP 状态代码和请求 ID。

请参阅

WebSiteOperationsExtensions 类
Microsoft.WindowsAzure 命名空间

返回页首