CreateResource méthode

Adds a new resource to the report server database.

Espace de noms :  ReportService2005
Assembly :  ReportService2005 (dans ReportService2005.dll)

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateResource", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("BatchHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void CreateResource(
	string Resource,
	string Parent,
	bool Overwrite,
	byte[] Contents,
	string MimeType,
	Property[] Properties
)

Paramètres

Resource
Type : System..::..String
The name of the new resource.
Parent
Type : System..::..String
The fully qualified URL of the parent folder to which to add the new resource.
Overwrite
Type : System..::..Boolean
A Boolean expression that specifies whether to overwrite an existing resource with the same name and path. The default value is false.
Contents
Type : array<System..::..Byte>[]()[][]
The contents of the resource file.
MimeType
Type : System..::..String
The Multipurpose Internet Mail Extensions (MIME) type of the resource. The maximum size is 260 characters.
Properties
Type : array<ReportService2005..::..Property>[]()[][]
An array of Property objects that defines the property names and values to set for the resource.

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.

If errors occur, the resource is not created.

Adding a resource to the report server database modifies the ModifiedBy and ModifiedDate properties of the parent folder.

Ajouts de la communauté

AJOUTER
Afficher: