Beispiel #1
0
 /// <summary>
 /// Add a new contact
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// </param>
 /// <param name='building'>
 /// </param>
 /// <param name='city'>
 /// </param>
 /// <param name='street'>
 /// </param>
 /// <param name='postcode'>
 /// </param>
 /// <param name='company'>
 /// </param>
 /// <param name='title'>
 /// </param>
 /// <param name='firstName'>
 /// </param>
 /// <param name='lastName'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ContactsModel> AddContactAsync(this IContacts operations, string subscriptionId, string building, string city, string street, string postcode, string company = default(string), string title = default(string), string firstName = default(string), string lastName = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddContactWithHttpMessagesAsync(subscriptionId, building, city, street, postcode, company, title, firstName, lastName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }