Performs an update operation the name of the specified virtual server. By the method SetRenameServer () of Aruba WsEndUser you can change the name by which the server is displayed. This will not change in any so the server identity code (serverID), ie the progressive code with which the server is identified in such a way unique within the system.

Namespace: Aruba.Cloud.WsEndUser
Assembly: Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll)

<OperationContract()> _ 
Function SetRenameServer( _ 
ByVal serverId As Integer, _ 
ByVal serverName As String
) As WsResult
This language is not supported or no code example is available.
[OperationContract()] 
WsResult SetRenameServer( 
int serverId
string serverName 
)
This language is not supported or no code example is available.
[OperationContract()] 
 
WsResult^ SetRenameServer( 
int serverId
String^ serverName 
)
This language is not supported or no code example is available.
 
OperationContract() 
function SetRenameServer( 
serverId : int
serverName : String 
) : WsResult;
This language is not supported or no code example is available.

Parameters

serverId

Type: int

Value of type System.Int32 which is the unique identifier of the virtual server you want to rename.

serverName

Type: string

Value of type System.String that represents the new name for the virtual server.

Return Value

Il metodo ritorna un oggetto WsResult contenente le informazioni sull'esito della chiamata al metodo.
The following example shows a user-defined method, called UpdateVirtualServerName (), or through a call to SetRenameServer () to Aruba WsEndUser, rename the virtual server with code 685.
 
private void RestoreVirtualServerFromArchive() 

try 

WsResult result = client.SetEnqueueServerRestore(685, "NewName"); 
 
if (!result.Success) 

throw new ApplicationException(String.Format( 
"An error has occurred while invoking SetRenameServer(). {0}", result.ResultMessage)); 


catch (Exception ex) 

throw new ApplicationException(String.Format("An error has occurred while renaming a virtual server. {0}", ex.Message)); 


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition, Windows Server 2008, Windows Server 2008 R2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.0, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0