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.
Namespace: Amazon.EC2.Util
Assembly: AWSSDK.dll
Version: (assembly version)
public class NetworkInterface : Object
The NetworkInterface type exposes the following members
| Name | Description | |
|---|---|---|
|
NetworkInterface(string) |
| Name | Type | Description | |
|---|---|---|---|
|
LocalHostname | System.String | The interface's local hostname. |
|
LocalIPv4s | System.Collections.Generic.IEnumerable<System.String> | The private IP addresses associated with the interface. |
|
MacAddress | System.String | The interface's Media Access Control (mac) address. |
|
OwnerId | System.String | The ID of the owner of the network interface. |
|
Profile | System.String | The interface's profile |
|
PublicHostname | System.String | The interface's public hostname. |
|
PublicIPv4s | System.Collections.Generic.IEnumerable<System.String> | The elastic IP addresses associated with the interface. |
|
SecurityGroupIds | System.Collections.Generic.IEnumerable<System.String> | IDs of the security groups to which the network interface belongs. Returned only for Amazon EC2 instances launched into a VPC. |
|
SecurityGroups | System.Collections.Generic.IEnumerable<System.String> | Security groups to which the network interface belongs. |
|
SubnetId | System.String | The ID of the Amazon EC2-VPC subnet in which the interface resides. |
|
SubnetIPv4CidrBlock | System.String | The CIDR block of the Amazon EC2-VPC subnet in which the interface resides. |
|
VpcId | System.String | The CIDR block of the Amazon EC2-VPC subnet in which the interface resides. |
| Name | Description | |
|---|---|---|
|
GetIpV4Association(string) | Get the private IPv4 address(es) that are associated with the public-ip address and assigned to that interface. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5