FileSystemInfo 构造函数

定义

初始化 FileSystemInfo 类的新实例。

重载

FileSystemInfo()

初始化 FileSystemInfo 类的新实例。

FileSystemInfo(SerializationInfo, StreamingContext)
已过时.

用序列化数据初始化 FileSystemInfo 类的新实例。

FileSystemInfo()

Source:
FileSystemInfo.Unix.cs
Source:
FileSystemInfo.Unix.cs
Source:
FileSystemInfo.Unix.cs

初始化 FileSystemInfo 类的新实例。

protected:
 FileSystemInfo();
protected FileSystemInfo ();
Protected Sub New ()

注解

有关常见 I/O 任务的列表,请参阅 常见 I/O 任务

另请参阅

适用于

FileSystemInfo(SerializationInfo, StreamingContext)

Source:
FileSystemInfo.cs
Source:
FileSystemInfo.cs
Source:
FileSystemInfo.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

用序列化数据初始化 FileSystemInfo 类的新实例。

protected:
 FileSystemInfo(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected FileSystemInfo (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected FileSystemInfo (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IO.FileSystemInfo : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.FileSystemInfo
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.IO.FileSystemInfo : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.FileSystemInfo
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含有关所引发异常的序列化对象数据的 SerializationInfo

context
StreamingContext

StreamingContext,它包含关于源或目标的上下文信息。

属性

例外

注解

有关常见 I/O 任务的列表,请参阅 常见 I/O 任务

另请参阅

适用于