---
title: "Aspose::Email::Mapi::KnownPropertyList::RuleId method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/knownpropertylist/ruleid/"
product: "Aspose.Email for C++"
description: "Specifies a unique identifier that is generated by the messaging server for each rule when the rule is first created."
---


## RuleId {#ruleid}

Specifies a unique identifier that is generated by the messaging server for each rule when the rule is first created. Area: Server-Side Rules Properties Canonical name: PidTagRuleId Alternate names: PR_RULE_ID, ptagRuleId

**Returns:** System::SharedPtr < PidTagPropertyDescriptor > Aspose::Email::Mapi::

```cpp
RuleId()
```

