|Microsoft Internet Security and Acceleration Server 2000|
Many ISA objects depend upon other objects. This means that you access dependent objects through the properties of their parent object. Keep the following considerations in mind as you manage these dependent objects in your code:
MySiteAndContentRule.SetDestination fpcSpecifiedDestinationSet, "Sports Destinations", fpcArrayScope
adds a new destination set to a site and content rule. This code fails if the FPCDestinationSet collection named "Sports Destinations" has not been previously created. See Restricting Site Access for a fuller example of adding a destination set to a site and content rule.
For example, if the FPCDestinationSet object named "Sports Destinations" is referenced by more than one FPCSiteAndContentRule object, code that removes the destination set will fail. If no other object references the destination set, "Sports Destinations" will be removed successfully.