Amazon.Lightsail.AmazonLightsailClient.BeginGetKeyPair C# (CSharp) Method

BeginGetKeyPair() public method

Initiates the asynchronous execution of the GetKeyPair operation.
public BeginGetKeyPair ( GetKeyPairRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Lightsail.Model.GetKeyPairRequest Container for the necessary parameters to execute the GetKeyPair operation on AmazonLightsailClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult
        public IAsyncResult BeginGetKeyPair(GetKeyPairRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new GetKeyPairRequestMarshaller();
            var unmarshaller = GetKeyPairResponseUnmarshaller.Instance;

            return BeginInvoke<GetKeyPairRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
AmazonLightsailClient