Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.ListPolicyVersionsAsync C# (CSharp) 메소드

ListPolicyVersionsAsync() 공개 메소드

Initiates the asynchronous execution of the ListPolicyVersions operation.
public ListPolicyVersionsAsync ( ListPolicyVersionsRequest request, ListPolicyVersionsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request ListPolicyVersionsRequest Container for the necessary parameters to execute the ListPolicyVersions operation on AmazonIdentityManagementServiceClient.
callback ListPolicyVersionsResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
리턴 void
        public void ListPolicyVersionsAsync(ListPolicyVersionsRequest request, AmazonServiceCallback<ListPolicyVersionsRequest, ListPolicyVersionsResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new ListPolicyVersionsRequestMarshaller();
            var unmarshaller = ListPolicyVersionsResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<ListPolicyVersionsRequest,ListPolicyVersionsResponse> responseObject 
                            = new AmazonServiceResult<ListPolicyVersionsRequest,ListPolicyVersionsResponse>((ListPolicyVersionsRequest)req, (ListPolicyVersionsResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<ListPolicyVersionsRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::ListPolicyVersionsAsync ( ListPolicyVersionsRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient