OptionValidation.AcceptExistingOnly Yöntem

Tanım

Aşırı Yüklemeler

Name Description
AcceptExistingOnly(Option<DirectoryInfo>)

Yalnızca var olan bir dizine karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

AcceptExistingOnly(Option<FileInfo>)

Yalnızca var olan bir dosyaya karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

AcceptExistingOnly(Option<FileSystemInfo>)

Yalnızca var olan bir dosya veya dizine karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

AcceptExistingOnly<T>(Option<T>)

Yalnızca var olan dosyalara veya dizinlere karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

AcceptExistingOnly(Option<DirectoryInfo>)

Kaynak:
OptionValidation.cs
Kaynak:
OptionValidation.cs

Yalnızca var olan bir dizine karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ AcceptExistingOnly(System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.DirectoryInfo> AcceptExistingOnly(this System.CommandLine.Option<System.IO.DirectoryInfo> option);
static member AcceptExistingOnly : System.CommandLine.Option<System.IO.DirectoryInfo> -> System.CommandLine.Option<System.IO.DirectoryInfo>
<Extension()>
Public Function AcceptExistingOnly (option As Option(Of DirectoryInfo)) As Option(Of DirectoryInfo)

Parametreler

option
Option<DirectoryInfo>

Yapılandırma seçeneği.

Döndürülenler

Genişletilmekte olan seçenek.

Şunlara uygulanır

AcceptExistingOnly(Option<FileInfo>)

Kaynak:
OptionValidation.cs
Kaynak:
OptionValidation.cs

Yalnızca var olan bir dosyaya karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Option<System::IO::FileInfo ^> ^ AcceptExistingOnly(System::CommandLine::Option<System::IO::FileInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileInfo> AcceptExistingOnly(this System.CommandLine.Option<System.IO.FileInfo> option);
static member AcceptExistingOnly : System.CommandLine.Option<System.IO.FileInfo> -> System.CommandLine.Option<System.IO.FileInfo>
<Extension()>
Public Function AcceptExistingOnly (option As Option(Of FileInfo)) As Option(Of FileInfo)

Parametreler

option
Option<FileInfo>

Yapılandırma seçeneği.

Döndürülenler

Genişletilmekte olan seçenek.

Şunlara uygulanır

AcceptExistingOnly(Option<FileSystemInfo>)

Kaynak:
OptionValidation.cs
Kaynak:
OptionValidation.cs

Yalnızca var olan bir dosya veya dizine karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ AcceptExistingOnly(System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileSystemInfo> AcceptExistingOnly(this System.CommandLine.Option<System.IO.FileSystemInfo> option);
static member AcceptExistingOnly : System.CommandLine.Option<System.IO.FileSystemInfo> -> System.CommandLine.Option<System.IO.FileSystemInfo>
<Extension()>
Public Function AcceptExistingOnly (option As Option(Of FileSystemInfo)) As Option(Of FileSystemInfo)

Parametreler

option
Option<FileSystemInfo>

Yapılandırma seçeneği.

Döndürülenler

Genişletilmekte olan seçenek.

Şunlara uygulanır

AcceptExistingOnly<T>(Option<T>)

Kaynak:
OptionValidation.cs
Kaynak:
OptionValidation.cs

Yalnızca var olan dosyalara veya dizinlere karşılık gelen değerleri kabul etmek için bir seçenek yapılandırılır.

public:
generic <typename T>
 where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Option<T> ^ AcceptExistingOnly(System::CommandLine::Option<T> ^ option);
public static System.CommandLine.Option<T> AcceptExistingOnly<T>(this System.CommandLine.Option<T> option) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member AcceptExistingOnly : System.CommandLine.Option<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Option<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function AcceptExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (option As Option(Of T)) As Option(Of T)

Tür Parametreleri

T

Parametreler

option
Option<T>

Yapılandırma seçeneği.

Döndürülenler

Genişletilmekte olan seçenek.

Şunlara uygulanır