Share via


DNSServerOperationsExtensions.BeginAddingDNSServer 메서드

Add a definition for a DNS server to an existing deployment. VM's in this deployment will be programmed to use this DNS server for all DNS resolutions

네임스페이스: Microsoft.WindowsAzure.Management.Compute
어셈블리: Microsoft.WindowsAzure.Management.Compute.dll의 Microsoft.WindowsAzure.Management.Compute

사용량

‘사용 방법
Dim operations As IDNSServerOperations
Dim serviceName As String
Dim deploymentName As String
Dim parameters As DNSAddParameters
Dim returnValue As OperationStatusResponse

returnValue = DNSServerOperationsExtensions.BeginAddingDNSServer(operations, serviceName, deploymentName, parameters)

구문

‘선언
<ExtensionAttribute> _
Public Shared Function BeginAddingDNSServer ( _
    operations As IDNSServerOperations, _
    serviceName As String, _
    deploymentName As String, _
    parameters As DNSAddParameters _
) As OperationStatusResponse
[ExtensionAttribute] 
public static OperationStatusResponse BeginAddingDNSServer (
    IDNSServerOperations operations,
    string serviceName,
    string deploymentName,
    DNSAddParameters parameters
)
[ExtensionAttribute] 
public:
static OperationStatusResponse^ BeginAddingDNSServer (
    IDNSServerOperations^ operations, 
    String^ serviceName, 
    String^ deploymentName, 
    DNSAddParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static OperationStatusResponse BeginAddingDNSServer (
    IDNSServerOperations operations, 
    String serviceName, 
    String deploymentName, 
    DNSAddParameters parameters
)
ExtensionAttribute 
public static function BeginAddingDNSServer (
    operations : IDNSServerOperations, 
    serviceName : String, 
    deploymentName : String, 
    parameters : DNSAddParameters
) : OperationStatusResponse

매개 변수

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Compute.IDNSServerOperations.
  • serviceName
    Required. The name of the service.
  • deploymentName
    Required. The name of the deployment.
  • parameters
    Required. Parameters supplied to the Add DNS Server operation.

반환 값

The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure.

스레드 보안

이 유형의 public static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

플랫폼

개발 플랫폼

Windows Vista, Windows 7 및 Windows Server 2008

대상 플랫폼

참고 항목

참조

DNSServerOperationsExtensions 클래스
DNSServerOperationsExtensions 멤버
Microsoft.WindowsAzure.Management.Compute 네임스페이스