NSUrl 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
[Foundation.Register("NSURL", true)]
public class NSUrl : Foundation.NSObject, Foundation.INSCopying, Foundation.INSItemProviderReading, Foundation.INSItemProviderWriting, Foundation.INSSecureCoding, IDisposable, IEquatable<Foundation.NSUrl>, QuickLook.IQLPreviewItem
[Foundation.Register("NSURL", true)]
public class NSUrl : Foundation.NSObject, AppKit.INSPasteboardReading, AppKit.INSPasteboardWriting, Foundation.INSCopying, Foundation.INSItemProviderReading, Foundation.INSItemProviderWriting, Foundation.INSSecureCoding, IDisposable, IEquatable<Foundation.NSUrl>, QuickLookUI.IQLPreviewItem
[Foundation.Register("NSURL", true)]
public class NSUrl : Foundation.NSObject, Foundation.INSCopying, Foundation.INSItemProviderReading, Foundation.INSItemProviderWriting, Foundation.INSSecureCoding, IDisposable, IEquatable<Foundation.NSUrl>
[<Foundation.Register("NSURL", true)>]
type NSUrl = class
inherit NSObject
interface IEquatable<NSUrl>
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSItemProviderReading
interface INSItemProviderWriting
interface INSSecureCoding
interface IQLPreviewItem
[<Foundation.Register("NSURL", true)>]
type NSUrl = class
inherit NSObject
interface IEquatable<NSUrl>
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSItemProviderReading
interface INSItemProviderWriting
interface INSSecureCoding
interface INSPasteboardReading
interface INSPasteboardWriting
interface IQLPreviewItem
[<Foundation.Register("NSURL", true)>]
type NSUrl = class
inherit NSObject
interface IEquatable<NSUrl>
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSItemProviderReading
interface INSItemProviderWriting
interface INSSecureCoding
- 继承
- 特性
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| NSUrl(IntPtr, Boolean, NSUrl) | |
| NSUrl(NativeHandle) |
创建非托管对象的托管表示形式时使用的构造函数。 由运行时调用。 |
| NSUrl(NSCoder) |
一个构造函数,用于从存储在 unarchiver 对象中的数据初始化对象。 |
| NSUrl(NSData, NSUrlBookmarkResolutionOptions, NSUrl, Boolean, NSError) | |
| NSUrl(NSObjectFlag) |
要调用派生类的构造函数,以跳过初始化,并仅分配对象。 |
| NSUrl(String, Boolean, NSUrl) | |
| NSUrl(String, Boolean) | |
| NSUrl(String, NSUrl) | |
| NSUrl(String, String, String) | |
| NSUrl(String, String) | |
| NSUrl(String) | |
属性
| 名称 | 说明 |
|---|---|
| AbsoluteString | |
| AbsoluteUrl | |
| AccessibilityAttributedUserInputLabels | (继承自 NSObject) |
| AccessibilityRespondsToUserInteraction | (继承自 NSObject) |
| AccessibilityTextualContext | (继承自 NSObject) |
| AccessibilityUserInputLabels | (继承自 NSObject) |
| AddedToDirectoryDateKey |
表示与常量 NSURLAddedToDirectoryDateKey 关联的值 |
| AttributeModificationDateKey |
表示与常量 NSURLAttributeModificationDateKey 关联的值 |
| BaseUrl | |
| Class | (继承自 NSObject) |
| ClassHandle |
此类的 Objective-C 类句柄。 |
| ContentAccessDateKey |
表示与常量 NSURLContentAccessDateKey 关联的值 |
| ContentModificationDateKey |
表示与常量 NSURLContentModificationDateKey 关联的值 |
| ContentTypeKey |
表示与常量“NSURLContentTypeKey”关联的值。 |
| CreationDateKey |
表示与常量 NSURLCreationDateKey 关联的值 |
| CustomIconKey |
表示与常量 NSURLCustomIconKey 关联的值 |
| DataRepresentation | |
| DebugDescription | (继承自 NSObject) |
| Description | (继承自 NSObject) |
| DirectoryEntryCountKey |
表示与常量“NSURLDirectoryEntryCountKey”关联的值。 |
| DocumentIdentifierKey |
表示与常量 NSURLDocumentIdentifierKey 关联的值 |
| EffectiveIconKey |
表示与常量 NSURLEffectiveIconKey 关联的值 |
| ExposedBindings | (继承自 NSObject) |
| FileAllocatedSizeKey |
表示与常量 NSURLFileAllocatedSizeKey 关联的值 |
| FileContentIdentifierKey |
表示与常量“NSURLFileContentIdentifierKey”关联的值。 |
| FileIdentifierKey |
表示与常量“NSURLFileIdentifierKey”关联的值。 |
| FilePathUrl | |
| FileProtectionComplete | |
| FileProtectionCompleteUnlessOpen | |
| FileProtectionCompleteUntilFirstUserAuthentication | |
| FileProtectionCompleteWhenUserInactive |
表示与常量“NSURLFileProtectionCompleteWhenUserInactive”关联的值。 |
| FileProtectionKey | |
| FileProtectionNone | |
| FileReferenceUrl | |
| FileResourceIdentifierKey |
表示与常量 NSURLFileResourceIdentifierKey 关联的值 |
| FileResourceTypeBlockSpecial |
表示与常量 NSURLFileResourceTypeBlockSpecial 关联的值 |
| FileResourceTypeCharacterSpecial |
表示与常量 NSURLFileResourceTypeCharacterSpecial 关联的值 |
| FileResourceTypeDirectory |
表示与常量 NSURLFileResourceTypeDirectory 关联的值 |
| FileResourceTypeKey |
表示与常量 NSURLFileResourceTypeKey 关联的值 |
| FileResourceTypeNamedPipe |
表示与常量 NSURLFileResourceTypeNamedPipe 关联的值 |
| FileResourceTypeRegular |
表示与常量 NSURLFileResourceTypeRegular 关联的值 |
| FileResourceTypeSocket |
表示与常量 NSURLFileResourceTypeSocket 关联的值 |
| FileResourceTypeSymbolicLink |
表示与常量 NSURLFileResourceTypeSymbolicLink 关联的值 |
| FileResourceTypeUnknown |
表示与常量 NSURLFileResourceTypeUnknown 关联的值 |
| FileSecurityKey |
表示与常量 NSURLFileSecurityKey 关联的值 |
| FileSizeKey |
表示与常量 NSURLFileSizeKey 关联的值 |
| Fragment | |
| GenerationIdentifierKey |
表示与常量 NSURLGenerationIdentifierKey 关联的值 |
| GetFileSystemRepresentationAsUtf8Ptr | |
| Handle |
处理(指针)到非托管对象表示形式。 (继承自 NSObject) |
| HasDirectoryPath | |
| HasHiddenExtensionKey |
表示与常量 NSURLHasHiddenExtensionKey 关联的值 |
| Host | |
| IsAliasFileKey |
表示与常量 NSURLIsAliasFileKey 关联的值 |
| IsApplicationKey | |
| IsDirectBinding |
获取或设置一个值,该值指示此实例是否使用直接 Objective-C 绑定。 (继承自 NSObject) |
| IsDirectoryKey |
表示与常量 NSURLIsDirectoryKey 关联的值 |
| IsExcludedFromBackupKey |
表示与常量 NSURLIsExcludedFromBackupKey 关联的值 |
| IsExecutableKey |
表示与常量 NSURLIsExecutableKey 关联的值 |
| IsFileReferenceUrl | |
| IsFileUrl |
此 NSUrl 是否使用文件方案。 |
| IsHiddenKey |
表示与常量 NSURLIsHiddenKey 关联的值 |
| IsMountTriggerKey |
表示与常量 NSURLIsMountTriggerKey 关联的值 |
| IsPackageKey |
表示与常量 NSURLIsPackageKey 关联的值 |
| IsProxy | (继承自 NSObject) |
| IsPurgeableKey |
表示与常量“NSURLIsPurgeableKey”关联的值。 |
| IsReadableKey |
表示与常量 NSURLIsReadableKey 关联的值 |
| IsRegularFileKey |
表示与常量 NSURLIsRegularFileKey 关联的值 |
| IsSparseKey |
表示与常量“NSURLIsSparseKey”关联的值。 |
| IsSymbolicLinkKey |
表示与常量 NSURLIsSymbolicLinkKey 关联的值 |
| IsSystemImmutableKey |
表示与常量 NSURLIsSystemImmutableKey 关联的值 |
| IsUbiquitousItemKey |
表示与常量 NSURLIsUbiquitousItemKey 关联的值 |
| IsUserImmutableKey |
表示与常量 NSURLIsUserImmutableKey 关联的值 |
| IsVolumeKey |
表示与常量 NSURLIsVolumeKey 关联的值 |
| IsWritableKey |
表示与常量 NSURLIsWritableKey 关联的值 |
| KeysOfUnsetValuesKey |
表示与常量 NSURLKeysOfUnsetValuesKey 关联的值 |
| LabelColorKey |
表示与常量 NSURLLabelColorKey 关联的值 |
| LabelNumberKey |
表示与常量 NSURLLabelNumberKey 关联的值 |
| LastPathComponent | |
| LinkCountKey |
表示与常量 NSURLLinkCountKey 关联的值 |
| LocalizedLabelKey |
表示与常量 NSURLLocalizedLabelKey 关联的值 |
| LocalizedNameKey |
表示与常量 NSURLLocalizedNameKey 关联的值 |
| LocalizedTypeDescriptionKey |
表示与常量 NSURLLocalizedTypeDescriptionKey 关联的值 |
| MayHaveExtendedAttributesKey |
表示与常量“NSURLMayHaveExtendedAttributesKey”关联的值。 |
| MayShareFileContentKey |
表示与常量“NSURLMayShareFileContentKey”关联的值。 |
| NameKey |
表示与常量 NSURLNameKey 关联的值 |
| ParameterString | |
| ParentDirectoryURLKey |
表示与常量 NSURLParentDirectoryURLKey 关联的值 |
| Password | |
| Path | |
| PathComponents | |
| PathExtension | |
| PathKey |
表示与常量 NSURLPathKey 关联的值 |
| Port | |
| PreferredIOBlockSizeKey |
表示与常量 NSURLPreferredIOBlockSizeKey 关联的值 |
| PreviewItemDisplayState | |
| PreviewItemTitle |
获取预览项的标题。 |
| PreviewItemUrl |
获取预览项的 URL。 |
| Query | |
| ReadableTypeIdentifiers | |
| RelativePath | |
| RelativeString | |
| ResourceSpecifier | |
| RetainCount | (继承自 NSObject) |
| Scheme | |
| Self | (继承自 NSObject) |
| StandardizedUrl | |
| Superclass | (继承自 NSObject) |
| SuperHandle |
已过时.
用于表示此 NSObject基类中方法的句柄。 (继承自 NSObject) |
| ThumbnailDictionaryKey |
表示与常量 NSURLThumbnailDictionaryKey 关联的值 |
| TotalFileAllocatedSizeKey |
表示与常量 NSURLTotalFileAllocatedSizeKey 关联的值 |
| TotalFileSizeKey |
表示与常量 NSURLTotalFileSizeKey 关联的值 |
| TypeIdentifierKey |
表示与常量 NSURLTypeIdentifierKey 关联的值 |
| UbiquitousItemContainerDisplayNameKey |
表示与常量 NSURLUbiquitousItemContainerDisplayNameKey 关联的值 |
| UbiquitousItemDownloadingErrorKey |
表示与常量 NSURLUbiquitousItemDownloadingErrorKey 关联的值 |
| UbiquitousItemDownloadingStatusCurrent |
表示与常量 NSURLUbiquitousItemDownloadingStatusCurrent 关联的值 |
| UbiquitousItemDownloadingStatusDownloaded |
表示与常量 NSURLUbiquitousItemDownloadingStatusDownloaded 关联的值 |
| UbiquitousItemDownloadingStatusKey |
表示与常量 NSURLUbiquitousItemDownloadingStatusKey 关联的值 |
| UbiquitousItemDownloadingStatusNotDownloaded |
表示与常量 NSURLUbiquitousItemDownloadingStatusNotDownloaded 关联的值 |
| UbiquitousItemDownloadRequestedKey |
表示与常量 NSURLUbiquitousItemDownloadRequestedKey 关联的值 |
| UbiquitousItemHasUnresolvedConflictsKey |
表示与常量 NSURLUbiquitousItemHasUnresolvedConflictsKey 关联的值 |
| UbiquitousItemIsDownloadedKey |
表示与常量 NSURLUbiquitousItemIsDownloadedKey 关联的值 |
| UbiquitousItemIsDownloadingKey |
开发人员不应使用此已弃用的属性。 |
| UbiquitousItemIsExcludedFromSyncKey |
表示与常量“NSURLUbiquitousItemIsExcludedFromSyncKey”关联的值。 |
| UbiquitousItemIsSharedKey | |
| UbiquitousItemIsSyncPausedKey |
表示与常量“NSURLUbiquitousItemIsSyncPausedKey”关联的值。 |
| UbiquitousItemIsUploadedKey |
表示与常量 NSURLUbiquitousItemIsUploadedKey 关联的值 |
| UbiquitousItemIsUploadingKey |
表示与常量 NSURLUbiquitousItemIsUploadingKey 关联的值 |
| UbiquitousItemPercentDownloadedKey |
表示与常量 NSURLUbiquitousItemPercentDownloadedKey 关联的值 |
| UbiquitousItemPercentUploadedKey |
表示与常量 NSURLUbiquitousItemPercentUploadedKey 关联的值 |
| UbiquitousItemSupportedSyncControlsKey |
表示与常量“NSURLUbiquitousItemSupportedSyncControlsKey”关联的值。 |
| UbiquitousItemUploadingErrorKey |
表示与常量 NSURLUbiquitousItemUploadingErrorKey 关联的值 |
| UbiquitousSharedItemCurrentUserPermissionsKey | |
| UbiquitousSharedItemCurrentUserRoleKey | |
| UbiquitousSharedItemMostRecentEditorNameComponentsKey | |
| UbiquitousSharedItemOwnerNameComponentsKey | |
| UbiquitousSharedItemPermissionsReadOnly | |
| UbiquitousSharedItemPermissionsReadWrite | |
| UbiquitousSharedItemRoleOwner | |
| UbiquitousSharedItemRoleParticipant | |
| User | |
| VolumeAvailableCapacityForImportantUsageKey | |
| VolumeAvailableCapacityForOpportunisticUsageKey | |
| VolumeAvailableCapacityKey |
表示与常量 NSURLVolumeAvailableCapacityKey 关联的值 |
| VolumeCreationDateKey |
表示与常量 NSURLVolumeCreationDateKey 关联的值 |
| VolumeIdentifierKey |
表示与常量 NSURLVolumeIdentifierKey 关联的值 |
| VolumeIsAutomountedKey |
表示与常量 NSURLVolumeIsAutomountedKey 关联的值 |
| VolumeIsBrowsableKey |
表示与常量 NSURLVolumeIsBrowsableKey 关联的值 |
| VolumeIsEjectableKey |
表示与常量 NSURLVolumeIsEjectableKey 关联的值 |
| VolumeIsEncryptedKey | |
| VolumeIsInternalKey |
表示与常量 NSURLVolumeIsInternalKey 关联的值 |
| VolumeIsJournalingKey |
表示与常量 NSURLVolumeIsJournalingKey 关联的值 |
| VolumeIsLocalKey |
表示与常量 NSURLVolumeIsLocalKey 关联的值 |
| VolumeIsReadOnlyKey |
表示与常量 NSURLVolumeIsReadOnlyKey 关联的值 |
| VolumeIsRemovableKey |
表示与常量 NSURLVolumeIsRemovableKey 关联的值 |
| VolumeIsRootFileSystemKey | |
| VolumeLocalizedFormatDescriptionKey |
表示与常量 NSURLVolumeLocalizedFormatDescriptionKey 关联的值 |
| VolumeLocalizedNameKey |
表示与常量 NSURLVolumeLocalizedNameKey 关联的值 |
| VolumeMaximumFileSizeKey |
表示与常量 NSURLVolumeMaximumFileSizeKey 关联的值 |
| VolumeMountFromLocationKey |
表示与常量“NSURLVolumeMountFromLocationKey”关联的值。 |
| VolumeNameKey |
表示与常量 NSURLVolumeNameKey 关联的值 |
| VolumeResourceCountKey |
表示与常量 NSURLVolumeResourceCountKey 关联的值 |
| VolumeSubtypeKey |
表示与常量“NSURLVolumeSubtypeKey”关联的值。 |
| VolumeSupportsAccessPermissionsKey | |
| VolumeSupportsAdvisoryFileLockingKey |
表示与常量 NSURLVolumeSupportsAdvisoryFileLockingKey 关联的值 |
| VolumeSupportsCasePreservedNamesKey |
表示与常量 NSURLVolumeSupportsCasePreservedNamesKey 关联的值 |
| VolumeSupportsCaseSensitiveNamesKey |
表示与常量 NSURLVolumeSupportsCaseSensitiveNamesKey 关联的值 |
| VolumeSupportsCompressionKey | |
| VolumeSupportsExclusiveRenamingKey | |
| VolumeSupportsExtendedSecurityKey |
表示与常量 NSURLVolumeSupportsExtendedSecurityKey 关联的值 |
| VolumeSupportsFileCloningKey | |
| VolumeSupportsFileProtectionKey |
表示与常量“NSURLVolumeSupportsFileProtectionKey”关联的值。 |
| VolumeSupportsHardLinksKey |
表示与常量 NSURLVolumeSupportsHardLinksKey 关联的值 |
| VolumeSupportsImmutableFilesKey | |
| VolumeSupportsJournalingKey |
表示与常量 NSURLVolumeSupportsJournalingKey 关联的值 |
| VolumeSupportsPersistentIDsKey |
表示与常量 NSURLVolumeSupportsPersistentIDsKey 关联的值 |
| VolumeSupportsRenamingKey |
表示与常量 NSURLVolumeSupportsRenamingKey 关联的值 |
| VolumeSupportsRootDirectoryDatesKey |
表示与常量 NSURLVolumeSupportsRootDirectoryDatesKey 关联的值 |
| VolumeSupportsSparseFilesKey |
表示与常量 NSURLVolumeSupportsSparseFilesKey 关联的值 |
| VolumeSupportsSwapRenamingKey | |
| VolumeSupportsSymbolicLinksKey |
表示与常量 NSURLVolumeSupportsSymbolicLinksKey 关联的值 |
| VolumeSupportsVolumeSizesKey |
表示与常量 NSURLVolumeSupportsVolumeSizesKey 关联的值 |
| VolumeSupportsZeroRunsKey |
表示与常量 NSURLVolumeSupportsZeroRunsKey 关联的值 |
| VolumeTotalCapacityKey |
表示与常量 NSURLVolumeTotalCapacityKey 关联的值 |
| VolumeTypeNameKey |
表示与常量“NSURLVolumeTypeNameKey”关联的值。 |
| VolumeURLForRemountingKey |
表示与常量 NSURLVolumeURLForRemountingKey 关联的值 |
| VolumeURLKey |
表示与常量 NSURLVolumeURLKey 关联的值 |
| VolumeUUIDStringKey |
表示与常量 NSURLVolumeUUIDStringKey 关联的值 |
| WritableTypeIdentifiers | |
| WritableTypeIdentifiersForItemProvider | |
| Zone | (继承自 NSObject) |
方法
运算符
| 名称 | 说明 |
|---|---|
| Equality(NSUrl, NSUrl) | |
| Implicit(NSUrl to Uri) | |
| Implicit(Uri to NSUrl) | |
| Inequality(NSUrl, NSUrl) | |