public IsAllowedChildType ( string contentTypeName ) : bool | ||
contentTypeName | string | |
Результат | bool |
public bool IsAllowedChildType(string contentTypeName)
{
var list = GetAllowedChildTypeNames();
if (list.Count() == 0)
return true;
return list.Contains(contentTypeName);
}
public bool IsAllowedChildType(ContentType contentType)
GenericContent::IsAllowedChildType ( |