Microsoft.Protocols.TestSuites.MS_LISTSWS.TestSuiteHelper.CreateDeleteContentTypeFields C# (CSharp) Method

CreateDeleteContentTypeFields() public static method

Construct deleted fields for the UpdateContentType operation using the specified field names.
public static CreateDeleteContentTypeFields ( ) : DeleteFieldsDefinition
return Microsoft.Protocols.TestSuites.Common.DeleteFieldsDefinition
        public static DeleteFieldsDefinition CreateDeleteContentTypeFields(params string[] fieldNames)
        {
            DeleteFieldsDefinition deleteFields = new DeleteFieldsDefinition();
            deleteFields.Fields = new DeleteFieldsDefinitionMethod[fieldNames.Length];
            for (int i = 0; i < fieldNames.Length; i++)
            {
                deleteFields.Fields[i] = new DeleteFieldsDefinitionMethod();
                deleteFields.Fields[i].ID = Guid.NewGuid().ToString();
                deleteFields.Fields[i].Field = new DeleteFieldDefinition();
                deleteFields.Fields[i].Field.Name = fieldNames[i];
            }

            return deleteFields;
        }