Bagikan melalui


ReportingService2010.InheritModelItemParentSecurity(String, String) Metode

Definisi

Menghapus kebijakan yang terkait dengan item dalam hierarki model dan menyebabkan item mewarisi kebijakan dari induknya.

public:
 void InheritModelItemParentSecurity(System::String ^ Model, System::String ^ ModelItemID);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/InheritModelItemParentSecurity", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public void InheritModelItemParentSecurity (string Model, string ModelItemID);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/InheritModelItemParentSecurity", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.InheritModelItemParentSecurity : string * string -> unit
Public Sub InheritModelItemParentSecurity (Model As String, ModelItemID As String)

Parameter

Model
String

URL model yang sepenuhnya memenuhi syarat termasuk nama file dan ekstensi nama file .smdl.

ModelItemID
String

ID item dalam model.

Atribut

Keterangan

Tabel di bawah ini memperlihatkan informasi header dan izin pada operasi ini.

Penggunaan Header SOAP (Dalam) TrustedUserHeaderValue

(Keluar) ServerInfoHeaderValue
Izin Yang Diperlukan Mode Asli UpdateModelItemAuthorizationPolicies
Izin yang Diperlukan Mode SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.ManagePermissions>

Kebijakan yang dihapus dari item juga dihapus dari item turunan yang mewarisi kebijakan tersebut.

Nilai ModelItemID diperlukan. Kebijakan tidak dapat dihapus dari akar model. Mencoba menghapus kebijakan yang terkait dengan akar model menyebabkan pengecualian SOAP dengan kode rsCannotDeleteRootPolicykesalahan .

Berlaku untuk