FME Server .NET API

IFMERepository.GetResource Method (String, String, String)

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

[Visual Basic]
Function GetResource( _
   ByVal itemName As String, _
   ByVal resourceName As String, _
   ByVal resourceFilePath As String _
) As Boolean
[C#]
bool GetResource(
   string itemName,
   string resourceName,
   string resourceFilePath
);

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

resourceName
resourceName the unique name of the reource. For example, "foo.fmx", "mycoords.csv", etc.
resourceFilePath
the local path where the resource will be saved

Return Value

true if resource exists, otherwise false if resource 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.GetResource Overload List