FME Server .NET API

IFMERepository.GetItem Method (String, String)

Gets the specified repository item and copies it to the local item file path.

[Visual Basic]
Function GetItem( _
   ByVal itemName As String, _
   ByVal itemFilePath As String _
) As Boolean
[C#]
bool GetItem(
   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"

Return Value

true if item exists, otherwise false if item does not exist

Exceptions

Exception TypeCondition
Safe.FMEServer.API.FMEServerExceptionif a FME Server exception occurred

See Also

IFMERepository Interface | IFMERepository Members | Safe.FMEServer.API Namespace | IFMERepository.GetItem Overload List