0
我設置權限列表項customlly.But我得到一個錯誤:我得到了一個錯誤。訪問被拒絕。 (異常來自HRESULT:0X80070005(E_ACCESSDENIED))。當我給listitem.BreakRoleInheritance(假)
"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" .
if (!listitem.HasUniqueRoleAssignments)
{
listitem.BreakRoleInheritance(false);//I got an error here
}
請幫助我..
您是否正在使用提升的權限運行? –