NSFileManager.GetUrl 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.
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).
- shouldCreate
- Boolean
- error
- NSError
Returns
- Attributes