Méthode CreateModel
Crée un modèle dans l'espace de noms de catalogue.
Espace de noms : ReportService2005
Assembly : ReportService2005 (en ReportService2005.dll)
Syntaxe
'Déclaration
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", 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("BatchHeaderValue")> _
Public Function CreateModel ( _
Model As String, _
Parent As String, _
Definition As Byte(), _
Properties As Property() _
) As Warning()
'Utilisation
Dim instance As ReportingService2005
Dim Model As String
Dim Parent As String
Dim Definition As Byte()
Dim Properties As Property()
Dim returnValue As Warning()
returnValue = instance.CreateModel(Model, _
Parent, Definition, Properties)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", 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("BatchHeaderValue")]
public Warning[] CreateModel(
string Model,
string Parent,
byte[] Definition,
Property[] Properties
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", 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"BatchHeaderValue")]
public:
array<Warning^>^ CreateModel(
String^ Model,
String^ Parent,
array<unsigned char>^ Definition,
array<Property^>^ Properties
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", 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("BatchHeaderValue")>]
member CreateModel :
Model:string *
Parent:string *
Definition:byte[] *
Properties:Property[] -> Warning[]
public function CreateModel(
Model : String,
Parent : String,
Definition : byte[],
Properties : Property[]
) : Warning[]
Paramètres
- Model
Type : System. . :: . .String
Nom du modèle à créer.
- Parent
Type : System. . :: . .String
Nom complet du dossier sous lequel ajouter le nouveau modèle.
- Definition
Type : array<System. . :: . .Byte> [] () [] []
Modèle de rapport à publier. Les données XML sont définies par le Semantic Model Definition Language https://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/.
- Properties
Type : array<ReportService2005. . :: . .Property> [] () [] []
Tableau d'objets Property qui définit les propriétés du modèle et leurs valeurs.
Valeur de retour
Type : array<ReportService2005. . :: . .Warning> [] () [] []
Le tableau suivant présente les informations relatives aux en-têtes et aux autorisations sur cette opération.
En-têtes SOAP |
(In) BatchHeaderValue (Out) ServerInfoHeaderValue |
Autorisations requises |
Tableau d'objets Warning qui décrit les avertissements qui peuvent avoir été rencontrés pendant la validation de la définition du modèle si CreateModel a été appelé ; sinon, une exception est levée.
Notes
Model item security is turned off for the model when it is initially created.
The ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.
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.
Voir aussi