語言

FileSystemInfo 建構函式

定義

初始化 FileSystemInfo 類別的新執行個體。

多載

名稱 Description
FileSystemInfo()

初始化 FileSystemInfo 類別的新執行個體。

FileSystemInfo(SerializationInfo, StreamingContext)
已淘汰.

初始化一個新的類別實例 FileSystemInfo ,並使用序列化資料。

FileSystemInfo()

來源:
FileSystemInfo.Unix.cs
來源:
FileSystemInfo.Unix.cs
來源:
FileSystemInfo.Unix.cs
來源:
FileSystemInfo.Unix.cs
來源:
FileSystemInfo.Unix.cs

初始化 FileSystemInfo 類別的新執行個體。

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

備註

關於常見 I/O 任務的清單,請參見 Common I/O 任務。

另請參閱

適用於

FileSystemInfo(SerializationInfo, StreamingContext)

來源:
FileSystemInfo.cs
來源:
FileSystemInfo.cs
來源:
FileSystemInfo.cs
來源:
FileSystemInfo.cs
來源:
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);
[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);
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}")>]
new System.IO.FileSystemInfo : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.FileSystemInfo
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

the that StreamingContext 包含了關於來源或目的地的上下文資訊。

屬性

例外狀況

備註

關於常見 I/O 任務的清單,請參見 Common I/O 任務。

另請參閱

適用於