SenseNet.ContentRepository.TrashBin.IsInTrash C# (CSharp) Method

IsInTrash() public static method

public static IsInTrash ( GenericContent n ) : bool
n GenericContent
return bool
        public static bool IsInTrash(GenericContent n)
        {
            //currently this is a simple path check, but
            //in the future, when local trash bins may exist,
            //it will be more complicated
            return n != null && (n.Path + "/").StartsWith(TrashBinPath + "/");
        }