NSBundle.PathForResource Method

Definition

Overloads

PathForResource(String, String, String, String)

[Foundation.Export("pathForResource:ofType:inDirectory:forLocalization:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string PathForResource(string name, string? ofType, string subpath, string localizationName);
[<Foundation.Export("pathForResource:ofType:inDirectory:forLocalization:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member PathForResource : string * string * string * string -> string
override this.PathForResource : string * string * string * string -> string

Parameters

name
String
ofType
String
subpath
String
localizationName
String

Returns

Attributes

Applies to

PathForResource(String, String, String)

[Foundation.Export("pathForResource:ofType:inDirectory:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string PathForResource(string name, string? ofType, string? subpath);
[<Foundation.Export("pathForResource:ofType:inDirectory:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member PathForResource : string * string * string -> string
override this.PathForResource : string * string * string -> string

Parameters

name
String
ofType
String
subpath
String

Returns

Attributes

Applies to

PathForResource(String, String)

[Foundation.Export("pathForResource:ofType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string PathForResource(string name, string? ofType);
[<Foundation.Export("pathForResource:ofType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member PathForResource : string * string -> string
override this.PathForResource : string * string -> string

Parameters

name
String
ofType
String

Returns

Attributes

Applies to