Export (0) Print
Expand All
Expand Minimize

CreateResource Method

SQL Server 2000

ReportingService.CreateResource Method

Adds a new resource to the report server database.

Public Sub CreateResource( _
   ByVal Resource As String, _
   ByVal Parent As String, _
   ByVal Overwrite As Boolean, _
   ByVal Contents() As Byte, _
   ByVal MimeType As String, _
   ByVal Properties() As [Namespace].Property _
   Member of [Namespace].ReportingService

public void CreateResource(
   string Resource,
   string Parent,
   bool Overwrite,
   Byte[] Contents,
   string MimeType,
   [Namespace].Property[] Properties
   Member of [Namespace].ReportingService
The name of the new resource.
The full path name of the parent folder to which to add the new resource.
A Boolean expression that specifies whether to overwrite an existing resource with the same name and path. The default value is false.
The contents of the resource file.
The Multipurpose Internet Mail Extensions (MIME) type of the resource. The maximum size is 260 characters.
An array of Property[] objects that defines the property names and values to set for the resource.

Operation Description
Create Resource Required for creating a resource within the specified parent folder.


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.

See Also

ReportingService Class

Reporting Services Web Service Library

© 2014 Microsoft