Class FromRssFeedRuleCondition (Outlook VBA)

The class FromRssFeedRuleCondition represents a rule condition that evaluates whether an item is from a specified RSS subscription. To use a FromRssFeedRuleCondition class variable it first needs to be instantiated, for example


Dim frf as FromRssFeedRuleCondition
Set frf = Session.DefaultStore.GetRules(1).Exceptions

Class

Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for OlObjectClass.


Dim oocsClass As OlObjectClass
oocsClass = Session.DefaultStore.GetRules(1).Exceptions.FromRssFeed.Class

ConditionType

Returns a constant, olConditionFromRssFeed, from the OlRuleConditionType enumeration that indicates the type of rule condition. Here you can find possible values for OlRuleConditionType.

This rule condition is supported by rules for receiving messages. For more information, see Specifying Rule Conditions.


Dim orcConditionType As OlRuleConditionType
orcConditionType = Session.DefaultStore.GetRules(1).Exceptions.FromRssFeed.ConditionType

Enabled

Returns or sets a Boolean that determines if the rule condition is enabled.

After you enable a rule condition, you must also save the rule by using Rules.Save so that the rule condition and its enabled state will persist beyond the current session. A rule condition is enabled only after it has been saved successfully.


Session.DefaultStore.GetRules(1).Exceptions.FromRssFeed.Enabled = True

FromRssFeed

Returns or sets an array of String elements that represent the RSS subscriptions that are being evaluated by the rule condition. Read/write.

Each element of the array is a single RSS subscription. Multiple RSS subscriptions are evaluated as logical OR conditions. You cannot obtain a list of valid RSS subscription names through the Outlook object model. You can obtain a list of valid RSS subscription names from the XML file Outlook.Sharing.xml.obi, which is located in the folder [drive]\Documents and Settings[UserName]\Local Settings\Application Data\Microsoft\Outlook. The name attribute of the tag contains the name of the RSS subscription that must be supplied in the array of strings for FromRssFeed. To enumerate all RSS subscriptions, examine the tag where . Returns an error if one or more elements in the array contains an empty string or an invalid RSS subscription.


Session.DefaultStore.GetRules(1).Exceptions.FromRssFeed.FromRssFeed =

Session

Returns the NameSpace object for the current session.

The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. Both members serve the same purpose. For example, the following statements perform the same function: