Amazon.EC2.AmazonEC2Client.AllocateAddress C# (CSharp) Method

AllocateAddress() private method

private AllocateAddress ( AllocateAddressRequest request ) : AllocateAddressResponse
request Amazon.EC2.Model.AllocateAddressRequest
return Amazon.EC2.Model.AllocateAddressResponse
        internal AllocateAddressResponse AllocateAddress(AllocateAddressRequest request)
        {
            var marshaller = new AllocateAddressRequestMarshaller();
            var unmarshaller = AllocateAddressResponseUnmarshaller.Instance;

            return Invoke<AllocateAddressRequest,AllocateAddressResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonEC2Client::AllocateAddress ( ) : AllocateAddressResponse

Usage Example

		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			var client = new AmazonEC2Client (new BasicAWSCredentials (ACCESS_KEY, SECRET_KEY), Amazon.RegionEndpoint.USEast1);
			var response = client.AllocateAddress ();

			var textView = new UITextView (new RectangleF (new PointF (64.0f, 64.0f), new SizeF (96.0f, 32.0f)));

			textView.Text = response.PublicIp;

			this.View.AddSubview (textView);
		}
All Usage Examples Of Amazon.EC2.AmazonEC2Client::AllocateAddress
AmazonEC2Client