다음을 통해 공유


GetUserModel 메서드

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

네임스페이스:  ReportService2005
어셈블리:  ReportService2005.dll의 ReportService2005

구문

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

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

매개 변수

  • Model
    형식: System. . :: . .String
    Full name of the model for which to retrieve user specific model definition.

반환 값

형식: array<System. . :: . .Byte> [] () [] []
A byte array that contains the SMDL 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.

주의

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

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