OptionExtensions.ExistingOnly Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
ExistingOnly(Option<DirectoryInfo>) |
Mengonfigurasi opsi untuk hanya menerima nilai yang terkait dengan direktori yang sudah ada. |
ExistingOnly(Option<FileInfo>) |
Mengonfigurasi opsi untuk hanya menerima nilai yang terkait dengan file yang sudah ada. |
ExistingOnly(Option<FileSystemInfo>) |
Mengonfigurasi opsi untuk hanya menerima nilai yang sesuai dengan file atau direktori yang ada. |
ExistingOnly<T>(Option<T>) |
Mengonfigurasi opsi untuk hanya menerima nilai yang terkait dengan file atau direktori yang ada. |
ExistingOnly(Option<DirectoryInfo>)
Mengonfigurasi opsi untuk hanya menerima nilai yang terkait dengan direktori yang sudah ada.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ ExistingOnly(System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.DirectoryInfo> ExistingOnly (this System.CommandLine.Option<System.IO.DirectoryInfo> option);
static member ExistingOnly : System.CommandLine.Option<System.IO.DirectoryInfo> -> System.CommandLine.Option<System.IO.DirectoryInfo>
<Extension()>
Public Function ExistingOnly (option As Option(Of DirectoryInfo)) As Option(Of DirectoryInfo)
Parameter
- option
- Option<DirectoryInfo>
Opsi untuk mengonfigurasi.
Mengembalikan
Opsi diperluas.
Berlaku untuk
ExistingOnly(Option<FileInfo>)
Mengonfigurasi opsi untuk hanya menerima nilai yang terkait dengan file yang sudah ada.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::FileInfo ^> ^ ExistingOnly(System::CommandLine::Option<System::IO::FileInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileInfo> ExistingOnly (this System.CommandLine.Option<System.IO.FileInfo> option);
static member ExistingOnly : System.CommandLine.Option<System.IO.FileInfo> -> System.CommandLine.Option<System.IO.FileInfo>
<Extension()>
Public Function ExistingOnly (option As Option(Of FileInfo)) As Option(Of FileInfo)
Parameter
Mengembalikan
Opsi diperluas.
Berlaku untuk
ExistingOnly(Option<FileSystemInfo>)
Mengonfigurasi opsi untuk hanya menerima nilai yang sesuai dengan file atau direktori yang ada.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ ExistingOnly(System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileSystemInfo> ExistingOnly (this System.CommandLine.Option<System.IO.FileSystemInfo> option);
static member ExistingOnly : System.CommandLine.Option<System.IO.FileSystemInfo> -> System.CommandLine.Option<System.IO.FileSystemInfo>
<Extension()>
Public Function ExistingOnly (option As Option(Of FileSystemInfo)) As Option(Of FileSystemInfo)
Parameter
- option
- Option<FileSystemInfo>
Opsi untuk mengonfigurasi.
Mengembalikan
Opsi diperluas.
Berlaku untuk
ExistingOnly<T>(Option<T>)
Mengonfigurasi opsi untuk hanya menerima nilai yang terkait dengan file atau direktori yang ada.
public:
generic <typename T>
where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<T> ^ ExistingOnly(System::CommandLine::Option<T> ^ option);
public static System.CommandLine.Option<T> ExistingOnly<T> (this System.CommandLine.Option<T> option) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member ExistingOnly : System.CommandLine.Option<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Option<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function ExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (option As Option(Of T)) As Option(Of T)
Jenis parameter
- T
Parameter
- option
- Option<T>
Opsi untuk mengonfigurasi.
Mengembalikan
Opsi diperluas.
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk