Click or drag to resize

ResourceLoaderGetResource Method (String, Boolean)

.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Returns an IResource that has been mapped to the protocol of the supplied resourceName.

Namespace:  Tangosol.IO.Resources
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntax
C#
public static IResource GetResource(
	string resourceName,
	bool relative
)

Parameters

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

Return Value

Type: IResource
A new IResource instance for the supplied resourceName.
Exceptions
ExceptionCondition
UriFormatException If an IResource type mapping does not exist for the supplied resourceName.
Exception In the case of any errors arising from the instantiation of the returned IResource instance.
See Also