NSBundle.PathForResource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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".