NSBundle.PathForResource Method

Definition

Overloads

PathForResource(String, String)

The path for a bundle resource .

PathForResource(String, String, String)

The path for a bundle resource .

PathForResource(String, String, String, String)

The path for a bundle resource .

PathForResource(String, String)

The path for a bundle resource .

[Foundation.Export("pathForResource:ofType:")]
public virtual string PathForResource (string name, string ofType);
abstract member PathForResource : string * string -> string
override this.PathForResource : string * string -> string

Parameters

name
String
ofType
String

The extension to look for, or null if no extension matching is desired.

This parameter can be null.

Returns

The path to the specified bundle or null if the resource cannot be found.

Attributes

Remarks

This method returns the path to files whose Xamarin Studio Build Action is set to "BundleResource".

Applies to

PathForResource(String, String, String)

The path for a bundle resource .

[Foundation.Export("pathForResource:ofType:inDirectory:")]
public virtual string PathForResource (string name, string ofType, string subpath);
abstract member PathForResource : string * string * string -> string
override this.PathForResource : string * string * string -> string

Parameters

name
String
ofType
String

To be added.

This parameter can be null.

subpath
String

To be added.

This parameter can be null.

Returns

The path to the specified bundle or null if the resource cannot be found.

Attributes

Remarks

This method returns the path to files whose Xamarin Studio Build Action is set to "BundleResource".

Applies to

PathForResource(String, String, String, String)

The path for a bundle resource .

[Foundation.Export("pathForResource:ofType:inDirectory:forLocalization:")]
public virtual string PathForResource (string name, string ofType, string subpath, string localizationName);
abstract member PathForResource : string * string * string * string -> string
override this.PathForResource : string * string * string * string -> string

Parameters

name
String
ofType
String

The extension to look for, or null if no extension matching is desired.

This parameter can be null.

subpath
String
localizationName
String

Returns

The path to the specified bundle or null if the resource cannot be found.

Attributes

Remarks

This method returns the path to files whose Xamarin Studio Build Action is set to "BundleResource".

Applies to