Freigeben über


OptionValidation.AcceptExistingOnly Methode

Definition

Überlädt

Name Beschreibung
AcceptExistingOnly(Option<DirectoryInfo>)

Konfiguriert eine Option, um nur Werte zu akzeptieren, die einem vorhandenen Verzeichnis entsprechen.

AcceptExistingOnly(Option<FileInfo>)

Konfiguriert eine Option, um nur Werte zu akzeptieren, die einer vorhandenen Datei entsprechen.

AcceptExistingOnly(Option<FileSystemInfo>)

Konfiguriert eine Option, um nur Werte zu akzeptieren, die einer vorhandenen Datei oder einem vorhandenen Verzeichnis entsprechen.

AcceptExistingOnly<T>(Option<T>)

Konfiguriert eine Option, um nur Werte zu akzeptieren, die vorhandenen Dateien oder Verzeichnissen entsprechen.

AcceptExistingOnly(Option<DirectoryInfo>)

Quelle:
OptionValidation.cs
Quelle:
OptionValidation.cs

Konfiguriert eine Option, um nur Werte zu akzeptieren, die einem vorhandenen Verzeichnis entsprechen.

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)

Parameter

option
Option<DirectoryInfo>

Die Option zum Konfigurieren.

Gibt zurück

Die Option, die erweitert wird.

Gilt für:

AcceptExistingOnly(Option<FileInfo>)

Quelle:
OptionValidation.cs
Quelle:
OptionValidation.cs

Konfiguriert eine Option, um nur Werte zu akzeptieren, die einer vorhandenen Datei entsprechen.

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)

Parameter

option
Option<FileInfo>

Die Option zum Konfigurieren.

Gibt zurück

Die Option, die erweitert wird.

Gilt für:

AcceptExistingOnly(Option<FileSystemInfo>)

Quelle:
OptionValidation.cs
Quelle:
OptionValidation.cs

Konfiguriert eine Option, um nur Werte zu akzeptieren, die einer vorhandenen Datei oder einem vorhandenen Verzeichnis entsprechen.

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)

Parameter

option
Option<FileSystemInfo>

Die Option zum Konfigurieren.

Gibt zurück

Die Option, die erweitert wird.

Gilt für:

AcceptExistingOnly<T>(Option<T>)

Quelle:
OptionValidation.cs
Quelle:
OptionValidation.cs

Konfiguriert eine Option, um nur Werte zu akzeptieren, die vorhandenen Dateien oder Verzeichnissen entsprechen.

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)

Typparameter

T

Parameter

option
Option<T>

Die Option zum Konfigurieren.

Gibt zurück

Die Option, die erweitert wird.

Gilt für: