public static string BuildSetFieldRawValueXml(EwsFieldUri fieldUri, string value, EwsAttributes attributes = null) { var definition = GetPropertyDefinition(fieldUri); string xml = definition.BuildSetFieldValueXml(new [] { value }, attributes); return(xml); }
public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, string[] values, EwsAttributes attributes = null) { var definition = GetPropertyDefinition(fieldUri); string xml = definition.BuildSetFieldValueXml(values.Select(v => v.ToEscapedXml()).ToArray(), attributes); return(xml); }
public static EwsPropertyDefinition GetPropertyDefinition(EwsFieldUri field) { var definition = definitions.FirstOrDefault(d => d.FieldUri == field); if (definition == null) { throw new NotSupportedException("Definition does not exists"); } return(definition); }
public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, string value, EwsAttributes attributes = null) { return(BuildUpdateFieldValueXml(fieldUri, new[] { value.ToEscapedXml() }, attributes)); }
public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, EwsImportance value) { return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(value) })); }
public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, EwsTaskStatus status) { return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(status) })); }
public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, DateTime value, DateTimeKind kind) { return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(value, kind) })); }
public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, bool value, bool useTrueFalse = true) { return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(value, useTrueFalse) })); }
protected EwsPropertyDefinition(EwsFieldUri fieldUri) { this.fieldUri = fieldUri; }
internal EwsExtendedPropertyDefinition(EwsFieldUri fieldUri, string propertySetId, int propertyId, EwsFieldType fieldType) : base(fieldUri, propertyId, fieldType) { this.PropertySetId = propertySetId; }
public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, EwsImportance value) { return(BuildSetFieldValueXml(fieldUri, GetString(value))); }
public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, EwsTaskStatus value) { return(BuildSetFieldValueXml(fieldUri, GetString(value))); }
public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, DateTime value, DateTimeKind kind) { return(BuildSetFieldValueXml(fieldUri, GetString(value, kind))); }
public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, bool value) { return(BuildSetFieldValueXml(fieldUri, GetString(value))); }
public static string BuildClearFieldValueXml(EwsFieldUri fieldUri) { var definition = GetPropertyDefinition(fieldUri); return(definition.BuildClearFieldXml()); }
internal EwsDistinguishedPropertyDefinition(EwsFieldUri fieldUri, int propertyId, EwsFieldType fieldType) : base(fieldUri) { this.propertyId = propertyId; this.PropertyType = fieldType; }
public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, string value, EwsAttributes attributes = null) { return(BuildSetFieldValueXml(fieldUri, new[] { value }, attributes)); }
public EwsSimpleArrayPropertyDefinition(EwsFieldUri fieldUri) : base(fieldUri) { }
public EwsSimplePropertyDefinition(EwsFieldUri fieldUri, string type = "Item") : base(fieldUri) { this.type = type; }