Amazon.RegionEndpoint.GetEndpointForService C# (CSharp) Метод

GetEndpointForService() публичный Метод

Gets the endpoint for a service in a region.
Thrown when the request service does not have a valid endpoint in the region.
public GetEndpointForService ( string serviceName ) : Endpoint
serviceName string The services system name.
Результат Endpoint
        public Endpoint GetEndpointForService(string serviceName)
        {
            return GetEndpointForService(serviceName, false);
        }

Same methods

RegionEndpoint::GetEndpointForService ( string serviceName, bool dualStack ) : Endpoint

Usage Example

 public AmazonS3Region(RegionEndpoint region)
 {
     Name = region.DisplayName;
     Identifier = region.SystemName;
     AmazonRegion = region;
     Hostname = region.GetEndpointForService("s3").Hostname;
 }
All Usage Examples Of Amazon.RegionEndpoint::GetEndpointForService