AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the GetNamespace operation. Gets information about a namespace.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ServiceDiscovery.AmazonServiceDiscoveryRequest
      Amazon.ServiceDiscovery.Model.GetNamespaceRequest

Namespace: Amazon.ServiceDiscovery.Model
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z

Syntax

C#
public class GetNamespaceRequest : AmazonServiceDiscoveryRequest
         IAmazonWebServiceRequest

The GetNamespaceRequest type exposes the following members

Constructors

NameDescription
Public Method GetNamespaceRequest()

Properties

NameTypeDescription
Public Property Id System.String

Gets and sets the property Id.

The ID of the namespace that you want to get information about.

Examples

This example gets information about a specified namespace.

GetNamespace example


var client = new AmazonServiceDiscoveryClient();
var response = client.GetNamespace(new GetNamespaceRequest 
{
    Id = "ns-e4anhexample0004"
});

Namespace awsNamespace = response.Namespace;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5