Поделиться через


Метод ReportingService2006.CreateModel

Adds a model to a SharePoint library.

Пространство имен:  ReportService2006
Сборка:  ReportService2006 (в ReportService2006.dll)

Синтаксис

'Декларация
Public Function CreateModel ( _
    Model As String, _
    Parent As String, _
    Definition As Byte(), _
    Properties As Property(), _
    <OutAttribute> ByRef Warnings As Warning() _
) As CatalogItem
'Применение
Dim instance As ReportingService2006 
Dim Model As String 
Dim Parent As String 
Dim Definition As Byte()
Dim Properties As Property()
Dim Warnings As Warning()
Dim returnValue As CatalogItem 

returnValue = instance.CreateModel(Model, _
    Parent, Definition, Properties, Warnings)
public CatalogItem CreateModel(
    string Model,
    string Parent,
    byte[] Definition,
    Property[] Properties,
    out Warning[] Warnings
)
public:
CatalogItem^ CreateModel(
    String^ Model, 
    String^ Parent, 
    array<unsigned char>^ Definition, 
    array<Property^>^ Properties, 
    [OutAttribute] array<Warning^>^% Warnings
)
member CreateModel : 
        Model:string * 
        Parent:string * 
        Definition:byte[] * 
        Properties:Property[] * 
        Warnings:Warning[] byref -> CatalogItem
public function CreateModel(
    Model : String, 
    Parent : String, 
    Definition : byte[], 
    Properties : Property[], 
    Warnings : Warning[]
) : CatalogItem

Параметры

  • Model
    Тип: System.String
    The name of the new model including the file name and .smdl file name extension.
  • Parent
    Тип: System.String
    The fully qualified URL for the parent folder that will contain the new model.
  • Warnings
    Тип: array<ReportService2006.Warning[]%
    [out] An array of Warning objects that describe any warnings that may have occurred during the validation of the model definition if CreateModel is called successfully; otherwise an exception is raised.

Возвращаемое значение

Тип: ReportService2006.CatalogItem
A CatalogItem object for the newly created model.

Замечания

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

AddListItems on Parent

Model item security is turned off for the model when it is first created.

The ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.

If the .smdl file name extension is excluded from the model name, an rsFileExtensionRequired error will be returned.

The length of the Parent parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Parent parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

См. также

Справочник

ReportingService2006 Класс

Пространство имен ReportService2006

Другие ресурсы

Работа с конструктором моделей

Защита моделей