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.

Return the metadata at the path

Namespace: Amazon.Util
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z


public String GetData(
         String path,
         Int32 tries


Type: System.String

Path at which to query the metadata; may be relative or absolute.

Type: System.Int32

Number of attempts to make

Return Value

Type: String
Data returned by the metadata service

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5