Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Returns an IResource that has been mapped to the protocol of the supplied resourceName.

Namespace: Tangosol.IO.Resources
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public static IResource GetResource(
	string resourceName,
	bool relative
)

Parameters

resourceName
Type: System..::..String
The name of the resource.
relative
Type: System..::..Boolean
If true the returned IResource will be relative to the application base directory or web application root.

Return Value

A new IResource instance for the supplied resourceName.

Exceptions

ExceptionCondition
System..::..UriFormatException If an IResource type mapping does not exist for the supplied resourceName.
System..::..Exception In the case of any errors arising from the instantiation of the returned IResource instance.

See Also