다음을 통해 공유


GetUserModel 메서드

현재 사용자에 대한 모델의 의미 부분을 반환합니다.

네임스페이스:  ReportService2006
어셈블리:  ReportService2006(ReportService2006.dll)

구문

‘선언
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetUserModel", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function GetUserModel ( _
    Model As String, _
    Perspective As String _
) As Byte()
‘사용 방법
Dim instance As ReportingService2006
Dim Model As String
Dim Perspective As String
Dim returnValue As Byte()

returnValue = instance.GetUserModel(Model, _
    Perspective)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetUserModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    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/2006/03/15/reporting/reportingservices/GetUserModel", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    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/2006/03/15/reporting/reportingservices/GetUserModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    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[]

매개 변수

  • Model
    유형: System. . :: . .String
    파일 이름과 .smdl 파일 이름 확장명을 포함하는 모델의 정규화된 URL입니다.

반환 값

유형: array<System. . :: . .Byte> [] () [] []
사용자가 사용 권한을 가진 모델의 의미 부분에 대한 SMDL 모델 정의를 포함하는 바이트 배열입니다. 이 데이터 형식에 대한 자세한 내용은 Microsoft .NET Framework 설명서에서 "Byte 구조체"를 참조하십시오.

주의

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.