FME Server .NET API

IFMERepository.AddItem Method 

Adds a new repository item identified by the item name with the item specified at the local item file path.

[Visual Basic]
Sub AddItem( _
   ByVal itemName As String, _
   ByVal itemFilePath As String _
)
[C#]
void AddItem(
   string itemName,
   string itemFilePath
);

Parameters

itemName
the unique name of the repository item. For example, "foo.fmw".

The types of repository items supported are:

Item TypeDescription
WorkspaceSpecified with an "fmw" extension. ie. foo.fmw
Custom FormatSpecified with a "fds" extension. ie. foo.fds
Custom TransformerSpecified with a "fmx" extension. ie. foo.fmx

itemFilePath
the local file path of the item. For example, "C:\My Workspaces\foo.fmw"

Exceptions

Exception TypeCondition
Safe.FMEServer.API.FMEServerException if a FMEServer exception occurred. An exception will also occur if the item to add already exists.

See Also

IFMERepository Interface | IFMERepository Members | Safe.FMEServer.API Namespace