CreateModel Método
Agrega un modelo a una biblioteca de SharePoint.
Espacio de nombres: ReportService2006
Ensamblado: ReportService2006 (en ReportService2006.dll)
Sintaxis
'Declaración
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/CreateModel", 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 CreateModel ( _
Model As String, _
Parent As String, _
Definition As Byte(), _
Properties As Property(), _
<OutAttribute> ByRef Warnings As Warning() _
) As CatalogItem
'Uso
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)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/CreateModel", 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 CatalogItem CreateModel(
string Model,
string Parent,
byte[] Definition,
Property[] Properties,
out Warning[] Warnings
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/CreateModel", 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:
CatalogItem^ CreateModel(
String^ Model,
String^ Parent,
array<unsigned char>^ Definition,
array<Property^>^ Properties,
[OutAttribute] array<Warning^>^% Warnings
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/CreateModel", 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 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
Parámetros
- Model
Tipo: System. . :: . .String
Nombre del nuevo modelo, incluidos el nombre y la extensión del nombre de archivo .smdl.
- Parent
Tipo: System. . :: . .String
Dirección URL completa de la carpeta principal que contendrá el nuevo modelo
- Definition
Tipo: array<System. . :: . .Byte> [] () [] []
Definición del modelo de informe que se va a publicar. Los datos XML se definen con el Lenguaje de definición de modelos semánticos (https://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/).
- Properties
Tipo: array<ReportService2006. . :: . .Property> [] () [] []
Matriz de objetos Property que define las propiedades de los modelos y sus valores.
- Warnings
Tipo: array<ReportService2006. . :: . .Warning> [] () [] []%
[salida] Matriz de objetos Warning que describen cualquier advertencia que pueda haberse producido durante la validación de la definición del modelo si se llama a CreateModel correctamente; en caso contrario, se produce una excepción.
Valor devuelto
Tipo: ReportService2006. . :: . .CatalogItem
Objeto CatalogItem para el modelo creado recientemente.
Comentarios
The table below shows header and permissions information on this operation.
SOAP Headers |
(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.
Vea también