Edytuj

Udostępnij za pośrednictwem


NSFileManager.GetUrl Method

Definition

Locates and optionally creates the specified common directory in a domain.

[Foundation.Export("URLForDirectory:inDomain:appropriateForURL:create:error:")]
public virtual Foundation.NSUrl GetUrl (Foundation.NSSearchPathDirectory directory, Foundation.NSSearchPathDomain domain, Foundation.NSUrl url, bool shouldCreate, out Foundation.NSError error);
abstract member GetUrl : Foundation.NSSearchPathDirectory * Foundation.NSSearchPathDomain * Foundation.NSUrl * bool *  -> Foundation.NSUrl
override this.GetUrl : Foundation.NSSearchPathDirectory * Foundation.NSSearchPathDomain * Foundation.NSUrl * bool *  -> Foundation.NSUrl

Parameters

directory
NSSearchPathDirectory

The type of directory that you are looking for (for example desktop directory, documents directory, trash directory and so on).

domain
NSSearchPathDomain

The domain is used to specify the base location (for example relative to the user home, a system directory, or a network directory).

url
NSUrl

This parameter can be null.

shouldCreate
Boolean
error
NSError

Returns

Attributes

Applies to