WebSiteOperationsExtensions.UpdateAsync方法
You can update the settings for a web site by using the HTTP PUT method and by specifying the settings in the request body. (see https://msdn.microsoft.com/en-us/library/windowsazure/dn167005.aspx for more information)
命名空間: Microsoft.WindowsAzure
組件: Microsoft.WindowsAzure.Management.WebSites (於 Microsoft.WindowsAzure.Management.WebSites.dll)
使用方式
'用途
Dim operations As IWebSiteOperations
Dim webSpaceName As String
Dim webSiteName As String
Dim parameters As WebSiteUpdateParameters
Dim returnValue As Task(Of WebSiteUpdateResponse)
returnValue = WebSiteOperationsExtensions.UpdateAsync(operations, webSpaceName, webSiteName, parameters)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function UpdateAsync ( _
operations As IWebSiteOperations, _
webSpaceName As String, _
webSiteName As String, _
parameters As WebSiteUpdateParameters _
) As Task(Of WebSiteUpdateResponse)
[ExtensionAttribute]
public static Task<WebSiteUpdateResponse> UpdateAsync (
IWebSiteOperations operations,
string webSpaceName,
string webSiteName,
WebSiteUpdateParameters parameters
)
[ExtensionAttribute]
public:
static Task<WebSiteUpdateResponse^>^ UpdateAsync (
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName,
WebSiteUpdateParameters^ parameters
)
/** @attribute ExtensionAttribute() */
public static Task<WebSiteUpdateResponse> UpdateAsync (
IWebSiteOperations operations,
String webSpaceName,
String webSiteName,
WebSiteUpdateParameters parameters
)
ExtensionAttribute
public static function UpdateAsync (
operations : IWebSiteOperations,
webSpaceName : String,
webSiteName : String,
parameters : WebSiteUpdateParameters
) : Task<WebSiteUpdateResponse>
參數
- operations
Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
- webSpaceName
Required. The name of the web space.
- webSiteName
Required. The name of the web site.
- parameters
Required. Parameters supplied to the Update Web Site operation.
傳回值
The Update Web Site operation response.
執行緒安全性
這種類型的任何公用靜態 (在 Visual Basic 中的 Shared) 成員都屬於安全執行緒。不保證任何執行個體成員安全執行緒。
平台
開發平台
Windows Vista、Windows 7 和 Windows Server 2008
目標平台
另請參閱
參考
WebSiteOperationsExtensions類別
WebSiteOperationsExtensions成員
Microsoft.WindowsAzure命名空間