次の方法で共有


HostedServiceOperationsExtensions.AddExtension メソッド

定義

拡張機能の追加操作により、クラウド サービスに使用可能な拡張機能が追加されます。 Azure では、プロセスはクラウド サービスの拡張機能として実行できます。 たとえば、リモート デスクトップ アクセスまたは Azure Diagnostics エージェントは、クラウド サービスの拡張機能として実行できます。 使用可能な拡張機能を見つけるには、使用可能な拡張機能の一覧表示操作を使用します。 (詳細については、 を参照してください http://msdn.microsoft.com/en-us/library/windowsazure/dn169558.aspx )

public static Microsoft.Azure.OperationStatusResponse AddExtension(this Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations operations, string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceAddExtensionParameters parameters);
static member AddExtension : Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceAddExtensionParameters -> Microsoft.Azure.OperationStatusResponse
<Extension()>
Public Function AddExtension (operations As IHostedServiceOperations, serviceName As String, parameters As HostedServiceAddExtensionParameters) As OperationStatusResponse

パラメーター

operations
IHostedServiceOperations

Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations への参照。

serviceName
String

必須。 クラウド サービスの名前。

parameters
HostedServiceAddExtensionParameters

必須。 拡張の追加操作に指定されたパラメーター。

戻り値

Microsoft.Azure.OperationStatusResponse

応答本文には、指定された非同期操作の状態が含まれています。指定した非同期操作が成功したか、失敗したかを示します。 この状態は、操作状態の取得操作自体に対して返される HTTP 状態コードとは異なります。 非同期操作が正常に終了した場合、応答本文には正常終了した要求の HTTP ステータス コードが含まれます。 非同期操作が失敗した場合、応答本文には、失敗した要求の HTTP 状態コードと、エラーに関するエラー情報が含まれます。

適用対象