Méthode GetUserModel

Retourne la partie sémantique d'un modèle pour l'utilisateur actuel.

Espace de noms :  ReportService2010
Assembly :  ReportService2010 (en ReportService2010.dll)

Syntaxe

'Déclaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function GetUserModel ( _
    Model As String, _
    Perspective As String _
) As Byte()
'Utilisation
Dim instance As ReportingService2010
Dim Model As String
Dim Perspective As String
Dim returnValue As Byte()

returnValue = instance.GetUserModel(Model, _
    Perspective)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public byte[] GetUserModel(
    string Model,
    string Perspective
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
array<unsigned char>^ GetUserModel(
    String^ Model, 
    String^ Perspective
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member GetUserModel : 
        Model:string * 
        Perspective:string -> byte[] 
public function GetUserModel(
    Model : String, 
    Perspective : String
) : byte[]

Paramètres

  • Model
    Type : System. . :: . .String
    URL complète du modèle, y compris le nom de fichier et l'extension de nom de fichier .smdl.
  • Perspective
    Type : System. . :: . .String
    ID de la perspective à récupérer à partir du modèle de rapport.

Valeur de retour

Type : array<System. . :: . .Byte> [] () [] []
Tableau d'octets qui contient une définition de modèle SMDL des parties sémantiques du modèle pour lequel l'utilisateur dispose d'autorisations. Pour plus d'informations sur ce type de données, consultez la section « Byte Structure » (Structure des octets) dans la documentation qui accompagne Microsoft.NET Framework.

Notes

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.