BAAssetPackManager.GetLocalizedFileDescriptor(String, String, NSError) 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.
Opens a localized asset file and returns its file descriptor.
[Foundation.Export("fileDescriptorForPath:asLocalizedForLanguage:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual int GetLocalizedFileDescriptor(string path, string languageIdentifier, out Foundation.NSError? error);
[<Foundation.Export("fileDescriptorForPath:asLocalizedForLanguage:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedFileDescriptor : string * string * NSError -> int
override this.GetLocalizedFileDescriptor : string * string * NSError -> int
Parameters
- path
- String
The relative path to the asset file.
- languageIdentifier
- String
The BCP-47 identifier used to select localized asset packs.
- error
- NSError
The error, or null if the operation succeeded.
Returns
The file descriptor, or -1 if an error occurred. The caller must close a successful descriptor.
- Attributes