AWS SDK Version 2 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.

.NET Framework 3.5
 
Return the metadata at the path

Namespace: Amazon.EC2.Util
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public String GetData(
         String path,
         Int32 tries
)

Parameters

path
Type: System.String

Path at which to query the metadata

tries
Type: System.Int32

Number of attempts to make

Return Value
Type: System.String
Data returned by the metadata service

Version Information

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