ReportingService2010.InheritModelItemParentSecurity(String, String) ReportingService2010.InheritModelItemParentSecurity(String, String) ReportingService2010.InheritModelItemParentSecurity(String, String) Method

定义

删除与模型层次结构中的项相关联的策略并导致模型项从其父项继承策略。 Deletes the policies associated with an item in the model hierarchy and causes the item to inherit the policies from its parent.

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);
Public Sub InheritModelItemParentSecurity (Model As String, ModelItemID As String)
参数
Model
String String String

模型的完全限定 URL,其中包括文件名和 .smdl 文件扩展名。 The fully qualified URL of the model including the file name and .smdl file name extension.

ModelItemID
String String String

模型中项的 ID。 The ID of the item in the model.

注解

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions UpdateModelItemAuthorizationPolicies
SharePoint 模式所需的权限SharePoint Mode Required Permissions ManagePermissions

从注册表项删除的策略也会删除从继承这些策略的子项。Policies that are deleted from an item are also deleted from child items that inherit those policies.

AModelItemID值是必需的。A ModelItemID value is required. 无法从模型根删除策略。Policies cannot be deleted from the model root. 尝试删除与模型根关联的策略导致 SOAP 异常与错误代码rsCannotDeleteRootPolicyAttempting to delete policies that are associated with the model root causes a SOAP exception with the error code rsCannotDeleteRootPolicy.

适用于