iOS Guides | Samples

MonoTouch.Foundation.NSUrl Class

Represents a URL.

See Also: NSUrl

Syntax

[MonoTouch.Foundation.Register("NSURL", true)]
public class NSUrl : NSObject, INSCopying, INSItemProviderReading, INSItemProviderWriting, INSSecureCoding, IDisposable, IEquatable<NSUrl>

Related content

Requirements

Namespace: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.Foundation.NSUrl are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Creates a file NSUrl with the specified path.

Public Properties

[read-only]
AbsoluteStringString. The string for this url as if it were an absolute URL.
[read-only]
AbsoluteUrlNSUrl. An absolute URL that refers to the same resource as this NSUrl.
[read-only]
static
AddedToDirectoryDateKeyNSString. Represents the value associated with the constant NSURLAddedToDirectoryDateKey
[read-only]
static
AttributeModificationDateKeyNSString. Represents the value associated with the constant NSURLAttributeModificationDateKey
[read-only]
BaseUrlNSUrl. The base URL of this NSUrl.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
ContentAccessDateKeyNSString. Represents the value associated with the constant NSURLContentAccessDateKey
[read-only]
static
ContentModificationDateKeyNSString. Represents the value associated with the constant NSURLContentModificationDateKey
[read-only]
static
CreationDateKeyNSString. Represents the value associated with the constant NSURLCreationDateKey
[read-only]
static
CustomIconKeyNSString. Represents the value associated with the constant NSURLCustomIconKey
[read-only]
DataRepresentationNSData.
[read-only]
static
DocumentIdentifierKeyNSString. Represents the value associated with the constant NSURLDocumentIdentifierKey
[read-only]
static
EffectiveIconKeyNSString. Represents the value associated with the constant NSURLEffectiveIconKey
[read-only]
static
FileAllocatedSizeKeyNSString. Represents the value associated with the constant NSURLFileAllocatedSizeKey
[read-only]
FilePathUrlNSUrl.
[read-only]
static
FileProtectionCompleteNSString.
[read-only]
static
FileProtectionCompleteUnlessOpenNSString.
[read-only]
static
FileProtectionCompleteUntilFirstUserAuthenticationNSString.
[read-only]
static
FileProtectionKeyNSString.
[read-only]
static
FileProtectionNoneNSString.
[read-only]
FileReferenceUrlNSUrl.
[read-only]
static
FileResourceIdentifierKeyNSString. Represents the value associated with the constant NSURLFileResourceIdentifierKey
[read-only]
static
FileResourceTypeBlockSpecialNSString. Represents the value associated with the constant NSURLFileResourceTypeBlockSpecial
[read-only]
static
FileResourceTypeCharacterSpecialNSString. Represents the value associated with the constant NSURLFileResourceTypeCharacterSpecial
[read-only]
static
FileResourceTypeDirectoryNSString. Represents the value associated with the constant NSURLFileResourceTypeDirectory
[read-only]
static
FileResourceTypeKeyNSString. Represents the value associated with the constant NSURLFileResourceTypeKey
[read-only]
static
FileResourceTypeNamedPipeNSString. Represents the value associated with the constant NSURLFileResourceTypeNamedPipe
[read-only]
static
FileResourceTypeRegularNSString. Represents the value associated with the constant NSURLFileResourceTypeRegular
[read-only]
static
FileResourceTypeSocketNSString. Represents the value associated with the constant NSURLFileResourceTypeSocket
[read-only]
static
FileResourceTypeSymbolicLinkNSString. Represents the value associated with the constant NSURLFileResourceTypeSymbolicLink
[read-only]
static
FileResourceTypeUnknownNSString. Represents the value associated with the constant NSURLFileResourceTypeUnknown
[read-only]
static
FileSecurityKeyNSString. Represents the value associated with the constant NSURLFileSecurityKey
[read-only]
static
FileSizeKeyNSString. Represents the value associated with the constant NSURLFileSizeKey
[read-only]
FragmentString. The fragment of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
static
GenerationIdentifierKeyNSString. Represents the value associated with the constant NSURLGenerationIdentifierKey
[read-only]
GetFileSystemRepresentationAsUtf8PtrIntPtr.
[read-only]
HasDirectoryPathBoolean.
[read-only]
static
HasHiddenExtensionKeyNSString. Represents the value associated with the constant NSURLHasHiddenExtensionKey
[read-only]
HostString. The host of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
static
IsAliasFileKeyNSString. Represents the value associated with the constant NSURLIsAliasFileKey
[read-only]
static
IsApplicationKeyNSString.
[read-only]
static
IsDirectoryKeyNSString. Represents the value associated with the constant NSURLIsDirectoryKey
[read-only]
static
IsExcludedFromBackupKeyNSString. Represents the value associated with the constant NSURLIsExcludedFromBackupKey
[read-only]
static
IsExecutableKeyNSString. Represents the value associated with the constant NSURLIsExecutableKey
[read-only]
IsFileUrlBoolean. Whether this NSUrl uses the file scheme.
[read-only]
static
IsHiddenKeyNSString. Represents the value associated with the constant NSURLIsHiddenKey
[read-only]
static
IsMountTriggerKeyNSString. Represents the value associated with the constant NSURLIsMountTriggerKey
[read-only]
static
IsPackageKeyNSString. Represents the value associated with the constant NSURLIsPackageKey
[read-only]
static
IsReadableKeyNSString. Represents the value associated with the constant NSURLIsReadableKey
[read-only]
static
IsRegularFileKeyNSString. Represents the value associated with the constant NSURLIsRegularFileKey
[read-only]
static
IsSymbolicLinkKeyNSString. Represents the value associated with the constant NSURLIsSymbolicLinkKey
[read-only]
static
IsSystemImmutableKeyNSString. Represents the value associated with the constant NSURLIsSystemImmutableKey
[read-only]
static
IsUbiquitousItemKeyNSString. Represents the value associated with the constant NSURLIsUbiquitousItemKey
[read-only]
static
IsUserImmutableKeyNSString. Represents the value associated with the constant NSURLIsUserImmutableKey
[read-only]
static
IsVolumeKeyNSString. Represents the value associated with the constant NSURLIsVolumeKey
[read-only]
static
IsWritableKeyNSString. Represents the value associated with the constant NSURLIsWritableKey
[read-only]
static
KeysOfUnsetValuesKeyNSString. Represents the value associated with the constant NSURLKeysOfUnsetValuesKey
[read-only]
static
LabelColorKeyNSString. Represents the value associated with the constant NSURLLabelColorKey
[read-only]
static
LabelNumberKeyNSString. Represents the value associated with the constant NSURLLabelNumberKey
[read-only]
LastPathComponentString.
[read-only]
static
LinkCountKeyNSString. Represents the value associated with the constant NSURLLinkCountKey
[read-only]
static
LocalizedLabelKeyNSString. Represents the value associated with the constant NSURLLocalizedLabelKey
[read-only]
static
LocalizedNameKeyNSString. Represents the value associated with the constant NSURLLocalizedNameKey
[read-only]
static
LocalizedTypeDescriptionKeyNSString. Represents the value associated with the constant NSURLLocalizedTypeDescriptionKey
[read-only]
static
NameKeyNSString. Represents the value associated with the constant NSURLNameKey
[read-only]
ParameterStringString. The parameter string of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
static
ParentDirectoryURLKeyNSString. Represents the value associated with the constant NSURLParentDirectoryURLKey
[read-only]
PasswordString. The password of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
PathString. The path of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
PathComponentsString[].
[read-only]
PathExtensionString.
[read-only]
static
PathKeyNSString. Represents the value associated with the constant NSURLPathKey
[read-only]
PortInt32.
[read-only]
static
PreferredIOBlockSizeKeyNSString. Represents the value associated with the constant NSURLPreferredIOBlockSizeKey
[read-only]
QueryString. The query of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
RelativePathString. The path of a URL conforming to RFC 1808 (Relative URLs), without resolving against this URL's base URL.
[read-only]
RelativeStringString. A string representation of the relation portion of this NSUrl.
[read-only]
ResourceSpecifierString. The resource specifier of this NSUrl.
[read-only]
SchemeString. The scheme of this NSUrl.
[read-only]
StandardizedUrlNSUrl. Returns a new NSUrl with no instances of "." or ".." in its path.
[read-only]
static
ThumbnailDictionaryKeyNSString. Represents the value associated with the constant NSURLThumbnailDictionaryKey
[read-only]
static
TotalFileAllocatedSizeKeyNSString. Represents the value associated with the constant NSURLTotalFileAllocatedSizeKey
[read-only]
static
TotalFileSizeKeyNSString. Represents the value associated with the constant NSURLTotalFileSizeKey
[read-only]
static
TypeIdentifierKeyNSString. Represents the value associated with the constant NSURLTypeIdentifierKey
[read-only]
static
UbiquitousItemContainerDisplayNameKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemContainerDisplayNameKey
[read-only]
static
UbiquitousItemDownloadingErrorKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemDownloadingErrorKey
[read-only]
static
UbiquitousItemDownloadingStatusCurrentNSString. Represents the value associated with the constant NSURLUbiquitousItemDownloadingStatusCurrent
[read-only]
static
UbiquitousItemDownloadingStatusDownloadedNSString. Represents the value associated with the constant NSURLUbiquitousItemDownloadingStatusDownloaded
[read-only]
static
UbiquitousItemDownloadingStatusKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemDownloadingStatusKey
[read-only]
static
UbiquitousItemDownloadingStatusNotDownloadedNSString. Represents the value associated with the constant NSURLUbiquitousItemDownloadingStatusNotDownloaded
[read-only]
static
UbiquitousItemDownloadRequestedKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemDownloadRequestedKey
[read-only]
static
UbiquitousItemHasUnresolvedConflictsKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemHasUnresolvedConflictsKey
[read-only]
static
UbiquitousItemIsDownloadedKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemIsDownloadedKey
[read-only]
static
UbiquitousItemIsDownloadingKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemIsDownloadingKey
[read-only]
static
UbiquitousItemIsUploadedKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemIsUploadedKey
[read-only]
static
UbiquitousItemIsUploadingKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemIsUploadingKey
[read-only]
static
UbiquitousItemPercentDownloadedKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemPercentDownloadedKey
[read-only]
static
UbiquitousItemPercentUploadedKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemPercentUploadedKey
[read-only]
static
UbiquitousItemUploadingErrorKeyNSString. Represents the value associated with the constant NSURLUbiquitousItemUploadingErrorKey
[read-only]
UserString. The user portion of a URL conforming to RFC 1808 (Relative URLs).
[read-only]
static
VolumeAvailableCapacityKeyNSString. Represents the value associated with the constant NSURLVolumeAvailableCapacityKey
[read-only]
static
VolumeCreationDateKeyNSString. Represents the value associated with the constant NSURLVolumeCreationDateKey
[read-only]
static
VolumeIdentifierKeyNSString. Represents the value associated with the constant NSURLVolumeIdentifierKey
[read-only]
static
VolumeIsAutomountedKeyNSString. Represents the value associated with the constant NSURLVolumeIsAutomountedKey
[read-only]
static
VolumeIsBrowsableKeyNSString. Represents the value associated with the constant NSURLVolumeIsBrowsableKey
[read-only]
static
VolumeIsEjectableKeyNSString. Represents the value associated with the constant NSURLVolumeIsEjectableKey
[read-only]
static
VolumeIsInternalKeyNSString. Represents the value associated with the constant NSURLVolumeIsInternalKey
[read-only]
static
VolumeIsJournalingKeyNSString. Represents the value associated with the constant NSURLVolumeIsJournalingKey
[read-only]
static
VolumeIsLocalKeyNSString. Represents the value associated with the constant NSURLVolumeIsLocalKey
[read-only]
static
VolumeIsReadOnlyKeyNSString. Represents the value associated with the constant NSURLVolumeIsReadOnlyKey
[read-only]
static
VolumeIsRemovableKeyNSString. Represents the value associated with the constant NSURLVolumeIsRemovableKey
[read-only]
static
VolumeLocalizedFormatDescriptionKeyNSString. Represents the value associated with the constant NSURLVolumeLocalizedFormatDescriptionKey
[read-only]
static
VolumeLocalizedNameKeyNSString. Represents the value associated with the constant NSURLVolumeLocalizedNameKey
[read-only]
static
VolumeMaximumFileSizeKeyNSString. Represents the value associated with the constant NSURLVolumeMaximumFileSizeKey
[read-only]
static
VolumeNameKeyNSString. Represents the value associated with the constant NSURLVolumeNameKey
[read-only]
static
VolumeResourceCountKeyNSString. Represents the value associated with the constant NSURLVolumeResourceCountKey
[read-only]
static
VolumeSupportsAdvisoryFileLockingKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsAdvisoryFileLockingKey
[read-only]
static
VolumeSupportsCasePreservedNamesKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsCasePreservedNamesKey
[read-only]
static
VolumeSupportsCaseSensitiveNamesKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsCaseSensitiveNamesKey
[read-only]
static
VolumeSupportsExtendedSecurityKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsExtendedSecurityKey
[read-only]
static
VolumeSupportsHardLinksKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsHardLinksKey
[read-only]
static
VolumeSupportsJournalingKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsJournalingKey
[read-only]
static
VolumeSupportsPersistentIDsKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsPersistentIDsKey
[read-only]
static
VolumeSupportsRenamingKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsRenamingKey
[read-only]
static
VolumeSupportsRootDirectoryDatesKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsRootDirectoryDatesKey
[read-only]
static
VolumeSupportsSparseFilesKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsSparseFilesKey
[read-only]
static
VolumeSupportsSymbolicLinksKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsSymbolicLinksKey
[read-only]
static
VolumeSupportsVolumeSizesKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsVolumeSizesKey
[read-only]
static
VolumeSupportsZeroRunsKeyNSString. Represents the value associated with the constant NSURLVolumeSupportsZeroRunsKey
[read-only]
static
VolumeTotalCapacityKeyNSString. Represents the value associated with the constant NSURLVolumeTotalCapacityKey
[read-only]
static
VolumeURLForRemountingKeyNSString. Represents the value associated with the constant NSURLVolumeURLForRemountingKey
[read-only]
static
VolumeURLKeyNSString. Represents the value associated with the constant NSURLVolumeURLKey
[read-only]
static
VolumeUUIDStringKeyNSString. Represents the value associated with the constant NSURLVolumeUUIDStringKey

Public Methods

Append(String, Boolean) : NSUrl
Returns a new NSUrl by appending the specified pathComponent to this NSUrl.
AppendPathExtension(String) : NSUrl
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
static
CreateAbsoluteUrlWithDataRepresentation(NSData, NSUrl) : NSUrl
CreateBookmarkData(NSUrlBookmarkCreationOptions, String[], NSUrl, out NSError) : NSData
Creates a bookmark for this URL, with the specified options and resource values.
static
CreateFileUrl(String[]) : NSUrl
static
CreateFileUrl(String, NSUrl) : NSUrl
static
CreateFileUrl(String, Boolean, NSUrl) : NSUrl
static
CreateWithDataRepresentation(NSData, NSUrl) : NSUrl
Equals(NSUrl) : Boolean
override
Equals(Object) : Boolean
Returns true if the two objects represent the same URL.
static
FromBookmarkData(NSData, NSUrlBookmarkResolutionOptions, NSUrl, out Boolean, out NSError) : NSUrl
static
FromFilename(String) : NSUrl
Creates an NSUrl from a filename.
static
FromString(String) : NSUrl
Creates a Url from the given strings.
static
FromUTF8Pointer(IntPtr, Boolean, NSUrl) : NSUrl
static
GetBookmarkData(NSUrl, out NSError) : NSData
GetFileSystemRepresentation(IntPtr, Int32) : Boolean
override
GetHashCode() : Int32
Generates a hash code for the current instance.
GetResourceValues(NSString[], out NSError) : NSDictionary
The resource values for the properties identified by specified array of keys.
IsEqual(NSUrl) : Boolean
Whether this NSUrl is equivalent to the other.
MakeRelative(String) : NSUrl
RemoveAllCachedResourceValues()
RemoveCachedResourceValueForKey(NSString)
RemoveLastPathComponent() : NSUrl
RemovePathExtension() : NSUrl
static
ResolveAlias(NSUrl, NSUrlBookmarkResolutionOptions, out NSError) : NSUrl
SetResource(NSString, NSObject) : Boolean
SetResource(String, NSObject) : Boolean
SetResource(NSString, NSObject, out NSError) : Boolean
SetResource(String, NSObject, out NSError) : Boolean
SetTemporaryResourceValue(NSObject, NSString)
StartAccessingSecurityScopedResource() : Boolean
StopAccessingSecurityScopedResource()
override
ToString() : String
Returns a string representation of the value of the current instance.
TryGetResource(NSString, out NSObject) : Boolean
TryGetResource(String, out NSObject) : Boolean
TryGetResource(NSString, out NSObject, out NSError) : Boolean
TryGetResource(String, out NSObject, out NSError) : Boolean
static
WriteBookmarkData(NSData, NSUrl, NSUrlBookmarkCreationOptions, out NSError) : Boolean

Public Operators