FME Server .NET API

IFMERepository.GetResource Method (String, String)

Gets the specified resource view for a specified item.

[Visual Basic]
Function GetResource( _
   ByVal itemName As String, _
   ByVal resourceName As String _
) As Safe.FMEServer.API.IFMEResource
[C#]
IFMEResource GetResource(
   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 resource. For example, "foo.fmx", "mycoords.csv", etc.

Return Value

the specified resource view. If no resource view found for specified

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