FME Server .NET API

IFMERepository.ResourceExists Method 

Checks if specified resource exists for specified item.

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

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 reource. For example, "foo.fmx", "mycoords.csv", etc.

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