FME Server .NET API

IFMERepository.UpdateResource Method 

Updates the repository resource of a repository item with the resource specified at the local resource file path.

[Visual Basic]
Sub UpdateResource( _
   ByVal itemName As String, _
   ByVal resourceName As String, _
   ByVal resourceFilePath As String _
)
[C#]
void UpdateResource(
   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
the unique name of the resource. For example, "foo.fmx", "mycoords.csv", etc.
resourceFilePath
the local file path of the resource. For example, "C:\My Workspaces\foo.fmx", "C:\My Workspaces\mycoords.csv", etc.

Exceptions

Exception TypeCondition
Safe.FMEServer.API.FMEServerException if a FME Server exception occurred. An exception will also occur if the resource to update does not already exist.

See Also

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