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

AssertTrashBinPath() private method

private AssertTrashBinPath ( ) : void
return void
        private void AssertTrashBinPath()
        {
            if (!Name.Equals("Trash") || !Parent.Path.Equals("/Root"))
                throw new InvalidOperationException("A TrashBin instance can only be saved under the global location /Root/Trash");
        }
    }