ReportingService2010.GetUserModel(String, String) ReportingService2010.GetUserModel(String, String) ReportingService2010.GetUserModel(String, String) Method

Definition

Returns the semantic piece of a model for the current user.

public:
 cli::array <System::Byte> ^ GetUserModel(System::String ^ Model, System::String ^ Perspective);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", 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 byte[] GetUserModel (string Model, string Perspective);
Public Function GetUserModel (Model As String, Perspective As String) As Byte()
Parameters
Model
String String String

The fully qualified URL of the model including the file name and .smdl file name extension.

Perspective
String String String

The ID of the perspective to retrieve from the report model.

Returns
Byte[]

A byte array that contains an SMDL model definition of the semantic parts of the model to which the user has permission. For more information about this data type, see "Byte Structure" in the Microsoft .NET Framework documentation.

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions ReadProperties
SharePoint Mode Required Permissions ViewListItems

The model definition that is returned is limited to the semantic parts of the model that the user has permission to view or use.

When Perspective is supplied, the user model returned reflects only the model items the user has permission to see in that perspective.

Applies to