NSFileManager.GetFileSystemAttributes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetFileSystemAttributes(String) |
返回给定卷的文件系统属性。 |
GetFileSystemAttributes(String, NSError) |
返回给定卷的文件系统属性。 |
GetFileSystemAttributes(String)
返回给定卷的文件系统属性。
public Foundation.NSFileSystemAttributes GetFileSystemAttributes (string path);
member this.GetFileSystemAttributes : string -> Foundation.NSFileSystemAttributes
参数
- path
- String
要探测信息的卷中的任何文件的路径。
返回
包含文件系统属性的 NSFileSystemAttributes 对象,错误时为 null。
注解
此函数返回与指定路径关联的文件系统信息。 路径是卷中包含的任何路径名称。
适用于
GetFileSystemAttributes(String, NSError)
返回给定卷的文件系统属性。
public Foundation.NSFileSystemAttributes GetFileSystemAttributes (string path, out Foundation.NSError error);
member this.GetFileSystemAttributes : string * -> Foundation.NSFileSystemAttributes
参数
- path
- String
要探测信息的卷中的任何文件的路径。
- error
- NSError
Error 对象,以返回任何错误条件。
返回
包含文件系统属性的 NSFileSystemAttributes 对象,错误时为 null。
注解
此函数返回与指定路径关联的文件系统信息。 路径是卷中包含的任何路径名称。