Compartir a través de


ReportingService2006.GetUserModel Método

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

Espacio de nombres:  ReportService2006
Ensamblado:  ReportService2006 (en ReportService2006.dll)

Sintaxis

'Declaración
Public Function GetUserModel ( _
    Model As String, _
    Perspective As String _
) As Byte()
'Uso
Dim instance As ReportingService2006 
Dim Model As String 
Dim Perspective As String 
Dim returnValue As Byte()

returnValue = instance.GetUserModel(Model, _
    Perspective)
public byte[] GetUserModel(
    string Model,
    string Perspective
)
public:
array<unsigned char>^ GetUserModel(
    String^ Model, 
    String^ Perspective
)
member GetUserModel : 
        Model:string * 
        Perspective:string -> byte[] 
public function GetUserModel(
    Model : String, 
    Perspective : String
) : byte[]

Parámetros

  • Model
    Tipo: System.String
    The fully qualified URL of the model including the file name and .smdl file name extension.
  • Perspective
    Tipo: System.String
    The ID of the perspective to retrieve from the report model.

Valor devuelto

Tipo: array<System.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.

Comentarios

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

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.

Vea también

Referencia

ReportingService2006 Clase

Espacio de nombres ReportService2006

Otros recursos

Trabajar con perspectivas en el Diseñador de modelos