Click or drag to resize

ContentRestrictionGetRestrictionByItem Method

Returns an existing content restriction by its item ID and item type.

Namespace:  Dynamicweb.Analytics.Profiles.Integration
Assembly:  Dynamicweb.Analytics (in Dynamicweb.Analytics.dll) Version: 2.1.4
Syntax
public static ContentRestriction GetRestrictionByItem(
	string itemID,
	string itemType
)

Parameters

itemID
Type: SystemString
Item ID.
itemType
Type: SystemString
Item type.

Return Value

Type: ContentRestriction
Existing content restriction or null (Nothing in Visual Basic) if content restriction cannot be found.
Exceptions
ExceptionCondition
ArgumentNullExceptionitemType is null.
ArgumentExceptionitemType is an empty string.
See Also