NSBundle.GetUrlForResource 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
| Name | Description |
|---|---|
| GetUrlForResource(String, String, String, NSUrl) | |
| GetUrlForResource(String, String, String, String) | |
| GetUrlForResource(String, String) | |
| GetUrlForResource(String, String, String) |
GetUrlForResource(String, String, String, NSUrl)
[Foundation.Export("URLForResource:withExtension:subdirectory:inBundleWithURL:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSUrl GetUrlForResource(string name, string fileExtension, string? subdirectory, Foundation.NSUrl bundleURL);
[<Foundation.Export("URLForResource:withExtension:subdirectory:inBundleWithURL:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetUrlForResource : string * string * string * Foundation.NSUrl -> Foundation.NSUrl
Parameters
- name
- String
- fileExtension
- String
- subdirectory
- String
- bundleURL
- NSUrl
Returns
- Attributes
Applies to
GetUrlForResource(String, String, String, String)
[Foundation.Export("URLForResource:withExtension:subdirectory:localization:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSUrl GetUrlForResource(string name, string fileExtension, string? subdirectory, string? localizationName);
[<Foundation.Export("URLForResource:withExtension:subdirectory:localization:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetUrlForResource : string * string * string * string -> Foundation.NSUrl
override this.GetUrlForResource : string * string * string * string -> Foundation.NSUrl
Parameters
- name
- String
- fileExtension
- String
- subdirectory
- String
- localizationName
- String
Returns
- Attributes
Applies to
GetUrlForResource(String, String)
[Foundation.Export("URLForResource:withExtension:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSUrl GetUrlForResource(string name, string fileExtension);
[<Foundation.Export("URLForResource:withExtension:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetUrlForResource : string * string -> Foundation.NSUrl
override this.GetUrlForResource : string * string -> Foundation.NSUrl
Parameters
- name
- String
- fileExtension
- String
Returns
- Attributes
Applies to
GetUrlForResource(String, String, String)
[Foundation.Export("URLForResource:withExtension:subdirectory:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSUrl GetUrlForResource(string name, string fileExtension, string? subdirectory);
[<Foundation.Export("URLForResource:withExtension:subdirectory:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetUrlForResource : string * string * string -> Foundation.NSUrl
override this.GetUrlForResource : string * string * string -> Foundation.NSUrl
Parameters
- name
- String
- fileExtension
- String
- subdirectory
- String
Returns
- Attributes