Microsoft.Protocols.TestSuites.MS_LISTSWS.S03_OperationOnListItem.GetChangeToken C# (CSharp) Method

GetChangeToken() private method

Get the change token for the specified list.
private GetChangeToken ( string listName ) : string
listName string Specified the list name.
return string
        private string GetChangeToken(string listName)
        {
            GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult result = null;
            try
            {
                result = this.listswsAdapter.GetListItemChangesSinceToken(
                                                            listName,
                                                            null,
                                                            null,
                                                            null,
                                                            null,
                                                            null,
                                                            null,
                                                            null);
            }
            catch (SoapException ex)
            {
                Site.Debug.Fail("Get latest change token for the list {} failed, the reason is {1}", listName, ex.Detail.InnerText);
            }

            return result.listitems.Changes.LastChangeToken;
        }
S03_OperationOnListItem