| 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
)
Public Shared Function GetRestrictionByItem (
itemID As String,
itemType As String
) As ContentRestriction
Parameters
- itemID
- Type: SystemString
Item ID. - itemType
- Type: SystemString
Item type.
Return Value
Type:
ContentRestrictionExisting content restriction or null (Nothing in Visual Basic) if content restriction cannot be found.
Exceptions See Also