This method adds a site to the site restriction collection.
Syntax
ISiteRestrictions.Add(SiteName, Included)
Parameters
SiteName
The name of the site to which the site rule applies. Search sets the new site object's Name property to this value.
Included
If True, Search crawls this site; if False, Search does not crawl this site. Search sets the new site object's Included property to this value.
Remarks
Do not include the http:// prefix to the site name. If you have path restrictions that you want to specify for the site, first add the site, then apply the path restrictions (see the ISitePaths.Add method).
Example
See Accessing and Creating an ISiteRestriction Interface Object.
See Also