Aspose.Email.Examples.CSharp.Email.Exchange.DeletePrivateDistributionList.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:DeletePrivateDistributionList
            IEWSClient client = EWSClient.GetEWSClient("https://outlook.office365.com/ews/exchange.asmx", "testUser", "pwd", "domain");
            ExchangeDistributionList[] distributionLists = client.ListDistributionLists();
            client.DeleteDistributionList(distributionLists[0],true);
            // ExEnd:DeletePrivateDistributionList
        }
    }
DeletePrivateDistributionList