Share via


HostedServiceOperationsExtensions.Get Method

Retrieves system properties for the specified cloud service.

Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Usage

'Usage
Dim operations As IHostedServiceOperations
Dim serviceName As String
Dim returnValue As HostedServiceGetResponse

returnValue = HostedServiceOperationsExtensions.Get(operations, serviceName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Get ( _
    operations As IHostedServiceOperations, _
    serviceName As String _
) As HostedServiceGetResponse
[ExtensionAttribute] 
public static HostedServiceGetResponse Get (
    IHostedServiceOperations operations,
    string serviceName
)
[ExtensionAttribute] 
public:
static HostedServiceGetResponse^ Get (
    IHostedServiceOperations^ operations, 
    String^ serviceName
)
/** @attribute ExtensionAttribute() */ 
public static HostedServiceGetResponse Get (
    IHostedServiceOperations operations, 
    String serviceName
)
ExtensionAttribute 
public static function Get (
    operations : IHostedServiceOperations, 
    serviceName : String
) : HostedServiceGetResponse

Parameters

  • serviceName
    The name of the cloud service for which information should be retrieved.

Return Value

The HostedServiceGetResponse object that contains information about the cloud service.

Remarks

These properties include the service name and service type; the name of the affinity group to which the service belongs, or its location if it is not part of an affinity group.

For more information about retrieving cloud service information, see the following resources:

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

HostedServiceOperationsExtensions Class
HostedServiceOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace