ReportingService2005.CreateResource Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds a new resource to the report server database.

Syntax

'Declaration
Public Sub CreateResource ( _
    Resource As String, _
    Parent As String, _
    Overwrite As Boolean, _
    Contents As Byte(), _
    MimeType As String, _
    Properties As Property() _
)
public void CreateResource (
    string Resource,
    string Parent,
    bool Overwrite,
    byte[] Contents,
    string MimeType,
    Property[] Properties
)
public:
void CreateResource (
    String^ Resource, 
    String^ Parent, 
    bool Overwrite, 
    array<unsigned char>^ Contents, 
    String^ MimeType, 
    array<Property^>^ Properties
)
public void CreateResource (
    String Resource, 
    String Parent, 
    boolean Overwrite, 
    byte[] Contents, 
    String MimeType, 
    Property[] Properties
)
public function CreateResource (
    Resource : String, 
    Parent : String, 
    Overwrite : boolean, 
    Contents : byte[], 
    MimeType : String, 
    Properties : Property[]
)

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.

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

See Also

Reference

ReportingService2005 Class
ReportingService2005 Members
Microsoft.WSSUX.ReportingServicesWebService.RSManagementService2005 Namespace