MonobjcMonobjc Documented Class Library
URLForResourceWithExtensionSubdirectoryInBundleWithURL Method (name, ext, subpath, bundleURL)
NamespacesMonobjc.FoundationNSBundleURLForResourceWithExtensionSubdirectoryInBundleWithURL(NSString, NSString, NSString, NSURL)

Creates and returns a file URL for the resource with the specified name and extension in the specified bundle.

Original signature is '+ (NSURL *)URLForResource:(NSString *)name withExtension:(NSString *)ext subdirectory:(NSString *)subpath inBundleWithURL:(NSURL *)bundleURL'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURL URLForResourceWithExtensionSubdirectoryInBundleWithURL(
	NSString name,
	NSString ext,
	NSString subpath,
	NSURL bundleURL
)
Public Shared Function URLForResourceWithExtensionSubdirectoryInBundleWithURL ( _
	name As NSString, _
	ext As NSString, _
	subpath As NSString, _
	bundleURL As NSURL _
) As NSURL
public:
static NSURL^ URLForResourceWithExtensionSubdirectoryInBundleWithURL(
	NSString^ name, 
	NSString^ ext, 
	NSString^ subpath, 
	NSURL^ bundleURL
)
Parameters
name (NSString)
The name of the resource file.
ext (NSString)
MISSING
subpath (NSString)
The name of the bundle subdirectory to search.
bundleURL (NSURL)
The file URL of the bundle to search.
Return Value
The file URL for the resource file or nil if the file could not be located.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)