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
Parameters
Resource
The name of the new resource.
Parent
The full path name of the parent folder to which to add the new resource.
Overwrite
A Boolean expression that specifies whether to overwrite an existing resource with the same name and path. The default value is false.
Contents
The contents of the resource file.
MimeType
The Multipurpose Internet Mail Extensions (MIME) type of the resource. The maximum size is 260 characters.
Properties
An array of Property[] objects that defines the property names and values to set for the resource.
Permissions

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

Remarks

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

Show:
© 2014 Microsoft