Represents metadata to associate with Amazon EC2 resources.
Each tag consists of a user-defined key and value.
Use tags to categorize EC2 resources, such as by purpose,
owner, or environment.
Namespace: Amazon.EC2.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class Tag
Public Class Tag
public ref class Tag
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| Tag()()()() | Initializes a new instance of the Tag class | |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsSetKey()()()() |
Checks if Key property is set
| |
| IsSetValue()()()() |
Checks if Value property is set
| |
| Key |
Gets and sets the Key property.
The tag's key.
| |
| ToString()()()() | (Inherited from Object.) | |
| Value |
Gets and sets the Value property.
The tag's value.
| |
| WithKey(String) |
Sets the Key property
| |
| WithValue(String) |
Sets the Value property
|