IResourceFileServiceCreate Method

Creates the resource file by specified resource object type.

Namespace:  Dundas.BI.FileSystem
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax
File Create(
	ObjectType objectType,
	string name,
	Guid parentId,
	Stream data,
	EntryCreationOptions? options
)

Parameters

objectType
Type: Dundas.BIObjectType
Type of the resource object.
name
Type: SystemString
The resource name.
parentId
Type: SystemGuid
ID of the parent entry.
data
Type: System.IOStream
The data stream.
options
Type: Dundas.BI.FileSystemEntryCreationOptions
Options for saving the new resource; or to use the default options.

Return Value

Type: File
The created resource file.
Exceptions
ExceptionCondition
ArgumentException

objectType is not a resource type.

-or-

name is , empty, only consists of whitespace, or contains invalid characters.

-or-

parentId is Empty.

ArgumentNullExceptiondata is .
ArgumentOutOfRangeExceptionname is longer than MaxNameLength.
NotFoundExceptionThe entry specified by parentId does not exist.
DuplicateItemExceptionA file or folder with the specified name already exists in the parent folder.
InvalidOperationExceptionThe size of the data exceeds the limit set by the MaxResourceFileSize configuration setting.
NoPrivilegeException

The caller does not have permission to create entries in the specified parent.

-or-

The caller's seat kind is less privileged than PowerUser.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also