## RemoveMessageFlags(IEnumerable&lt;ImapMessageInfo&gt;, ImapMessageFlags) {#removemessageflags_18}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IEnumerable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | IEnumerable`1 | The set of ImapMessageInfo |
| flags | ImapMessageFlags | The flags to be changed |

### See Also

* class [ImapMessageInfo](../../imapmessageinfo/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, IEnumerable&lt;ImapMessageInfo&gt;, ImapMessageFlags) {#removemessageflags_4}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, IEnumerable<ImapMessageInfo> messageInfoSet, 
    ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| messageInfoSet | IEnumerable`1 | The set of ImapMessageInfo |
| flags | ImapMessageFlags | The flags to be changed |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageInfo](../../imapmessageinfo/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IEnumerable&lt;ImapMessageInfo&gt;, ImapMessageFlags, long) {#removemessageflags_19}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IEnumerable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | IEnumerable`1 | The set of ImapMessageInfo |
| flags | ImapMessageFlags | The flags to be changed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* class [ImapMessageInfo](../../imapmessageinfo/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, IEnumerable&lt;ImapMessageInfo&gt;, ImapMessageFlags, long) {#removemessageflags_5}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, IEnumerable<ImapMessageInfo> messageInfoSet, 
    ImapMessageFlags flags, long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| messageInfoSet | IEnumerable`1 | The set of ImapMessageInfo |
| flags | ImapMessageFlags | The flags to be changed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageInfo](../../imapmessageinfo/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, int, ImapMessageFlags) {#removemessageflags}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| sequenceNumber | Int32 | The sequence number of the message |
| flags | ImapMessageFlags | The flags to be added |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, string, ImapMessageFlags) {#removemessageflags_10}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, string uniqueId, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| uniqueId | String | Unique identifier of a message |
| flags | ImapMessageFlags | The flags to be added |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(int, ImapMessageFlags) {#removemessageflags_14}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | Int32 | The sequence number of the message |
| flags | ImapMessageFlags | The flags to be added |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(string, ImapMessageFlags) {#removemessageflags_24}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(string uniqueId, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | String | Unique identifier of a message |
| flags | ImapMessageFlags | The flags to be added |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, int, ImapMessageFlags, long) {#removemessageflags_1}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| sequenceNumber | Int32 | The sequence number of the message |
| flags | ImapMessageFlags | The flags to be added |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, string, ImapMessageFlags, long) {#removemessageflags_11}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, string uniqueId, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| uniqueId | String | Unique identifier of a message |
| flags | ImapMessageFlags | The flags to be added |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(int, ImapMessageFlags, long) {#removemessageflags_15}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | Int32 | The sequence number of the message |
| flags | ImapMessageFlags | The flags to be added |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(string, ImapMessageFlags, long) {#removemessageflags_25}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(string uniqueId, ImapMessageFlags flags, long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | String | Unique identifier of a message |
| flags | ImapMessageFlags | The flags to be added |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(string, string, ImapMessageFlags) {#removemessageflags_26}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(string startUid, string endUid, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| startUid | String | The starting UID of a message list |
| endUid | String | The ending UID of a message list |
| flags | ImapMessageFlags | The flags to be changed |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(int, int, ImapMessageFlags) {#removemessageflags_16}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | Int32 | The starting sequence number of a message list |
| endSequence | Int32 | The ending sequence number of a message list |
| flags | ImapMessageFlags | The flags to be removed |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, string, string, ImapMessageFlags) {#removemessageflags_12}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, string startUid, string endUid, 
    ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| startUid | String | The starting UID of a message list |
| endUid | String | The ending UID of a message list |
| flags | ImapMessageFlags | The flags to be changed |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, int, int, ImapMessageFlags) {#removemessageflags_2}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, int startSequence, int endSequence, 
    ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| startSequence | Int32 | The starting sequence number of a message list |
| endSequence | Int32 | The ending sequence number of a message list |
| flags | ImapMessageFlags | The flags to be removed |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(string, string, ImapMessageFlags, long) {#removemessageflags_27}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(string startUid, string endUid, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| startUid | String | The starting UID of a message list |
| endUid | String | The ending UID of a message list |
| flags | ImapMessageFlags | The flags to be changed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(int, int, ImapMessageFlags, long) {#removemessageflags_17}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | Int32 | The starting sequence number of a message list |
| endSequence | Int32 | The ending sequence number of a message list |
| flags | ImapMessageFlags | The flags to be removed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, string, string, ImapMessageFlags, long) {#removemessageflags_13}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, string startUid, string endUid, 
    ImapMessageFlags flags, long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| startUid | String | The starting UID of a message list |
| endUid | String | The ending UID of a message list |
| flags | ImapMessageFlags | The flags to be changed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, int, int, ImapMessageFlags, long) {#removemessageflags_3}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, int startSequence, int endSequence, 
    ImapMessageFlags flags, long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| startSequence | Int32 | The starting sequence number of a message list |
| endSequence | Int32 | The ending sequence number of a message list |
| flags | ImapMessageFlags | The flags to be removed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IEnumerable&lt;string&gt;, ImapMessageFlags) {#removemessageflags_22}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IEnumerable<string> uidSet, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | IEnumerable`1 | The set of UID for messages |
| flags | ImapMessageFlags | The flags to be changed |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | UidSet should not be null or empty. |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IEnumerable&lt;int&gt;, ImapMessageFlags) {#removemessageflags_20}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IEnumerable<int> sequenceSet, ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | IEnumerable`1 | The set of sequence numbers for messages |
| flags | ImapMessageFlags | The flags to be removed |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | SequenceSet should not be null or empty. |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, IEnumerable&lt;string&gt;, ImapMessageFlags) {#removemessageflags_8}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, IEnumerable<string> uidSet, 
    ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| uidSet | IEnumerable`1 | The set of UID for messages |
| flags | ImapMessageFlags | The flags to be changed |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | UidSet should not be null or empty. |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, IEnumerable&lt;int&gt;, ImapMessageFlags) {#removemessageflags_6}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, IEnumerable<int> sequenceSet, 
    ImapMessageFlags flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| sequenceSet | IEnumerable`1 | The set of sequence numbers for messages |
| flags | ImapMessageFlags | The flags to be removed |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | SequenceSet should not be null or empty. |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IEnumerable&lt;string&gt;, ImapMessageFlags, long) {#removemessageflags_23}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IEnumerable<string> uidSet, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | IEnumerable`1 | The set of UID for messages |
| flags | ImapMessageFlags | The flags to be changed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | UidSet should not be null or empty. |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IEnumerable&lt;int&gt;, ImapMessageFlags, long) {#removemessageflags_21}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IEnumerable<int> sequenceSet, ImapMessageFlags flags, 
    long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | IEnumerable`1 | The set of sequence numbers for messages |
| flags | ImapMessageFlags | The flags to be removed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | SequenceSet should not be null or empty. |

### See Also

* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, IEnumerable&lt;string&gt;, ImapMessageFlags, long) {#removemessageflags_9}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, IEnumerable<string> uidSet, 
    ImapMessageFlags flags, long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| uidSet | IEnumerable`1 | The set of set of UID for messages |
| flags | ImapMessageFlags | The flags to be changed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | UidSet should not be null or empty. |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)

---

## RemoveMessageFlags(IConnection, IEnumerable&lt;int&gt;, ImapMessageFlags, long) {#removemessageflags_7}

Removes the flags of the message

```csharp
public void RemoveMessageFlags(IConnection connection, IEnumerable<int> sequenceSet, 
    ImapMessageFlags flags, long modificationSequence)
```

| Parameter | Type | Description |
| --- | --- | --- |
| connection | IConnection | Connection to a server |
| sequenceSet | IEnumerable`1 | The set of sequence numbers for messages |
| flags | ImapMessageFlags | The flags to be removed |
| modificationSequence | Int64 | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | SequenceSet should not be null or empty. |

### See Also

* interface [IConnection](../../../aspose.email.clients/iconnection/)
* class [ImapMessageFlags](../../imapmessageflags/)
* class [ImapClient](../)
* namespace [Aspose.Email.Clients.Imap](../../imapclient/)
* assembly [Aspose.Email](../../../)


